I am concerned w/ two classes here. One is a class which creates a GUI with various buttons, a JTextField and a JTextArea. The other class is a "controller" class whose constructor creates an instance of the GUI class (named "gui" of all things...). The controller class is supposed to handle events generated when one of the buttons on the GUI is clicked.
The GUI class constructor sets up all the gui components. Also in the GUI class I have two methods: one is a "getter" which returns a
String array which is a list of button names. The other is a "setter" which sets the text in the JTextField.
Within the event handling method of the controller class I can invoke the "getter" method via "gui.getButtonNameList". However, if I try to invoke the "setter" method (named setTotalField), I cannot even see this method from the controller class. Both methods are public of course; the getter returns a String[], and the setter is void.
I don't understand why I cannot see the "setter" method from the controller class....??
Any assistance would be greatly appreciated!
Thanks,
Mike