This week's book giveaway is in the Other Open Source APIs forum. We're giving away four copies of Storm Applied and have Sean Allen, Peter Pathirana & Matthew Jankowski on-line! See this thread for details.
Buttons defined in the constructor of a frame which is the main screen of the program don't work. There are two other frames that are registered as ActionListerners with these buttons and are defined as two separate static inner classes within the public class of the file . The source code compiles and runs with the main screen being displayed. However when the buttons are clicked they do nothing. Please any suggestions.
Without looking at your code in too much detail, it looks like you have your references to your frames mixed up. Try changing your actionPerformed methods. Instead of: new Feedback(); setVisible(true); try new Feedback().setVisible(true);
or put the call to setVisible into the constructors for the inner classes. [ January 26, 2002: Message edited by: Graeme Brown ]