Hi there,
This is just going to be a quick question. Also just note that I am i some "remote location" so I cant even show you my code.
But what I want to know is this: Say you have a package called "myPackage" and inside that you have 2 classes, firstClass() & secondClass(). In firstClass() there is a List. At runtime I want to use the getSelectedIndex() method of the List from secondClass().
So if firstClass() & secondClass() have public access, you do this right?:
int index = myPackage.firstClass.myList.getSelectedIndex();
Hope I have the right idea here.. But in my app that I'm working on currently (I'm using Netbeans for this) I keep on getting errors stating that it cannot find "myPackage" or "firstClass" or whatever. What can be the problem? If both classes have public access how can an error like that appear?
Thanks for your help!
Sorry if the questions if a bit vague/confusing...