posted 15 years ago
I am not familiar with Michael Dunn's suggestion, but I can offer this...
I usually just have my main GUI class extend JPanel and implement action listener, or mouseListener. By extending JPanel you can easily add your GUI to either a JFrame or a JApplet.
Any component that is added to the JPanel can have an action listener on it. for example, the contructor for my JPanel class might call a buildGUI method which includes the following code for a JButton.
JButton jb1 = new JButton("Action1");
jb1.addActionListener(this);
Then my GUI will have a single actionPerformed method, which will use if...then blocks for each possible action command. e,g,
p.s. sorry, please ignore, I didn't read the question carefully, my suggestion is what you have said you don't want to do.