I am not sure I find it useful to post a solution where a function call has a parameter that is itself a function definition:
(I know this started from post #1 of this thread)
For example
...
public static void main(String[] args)
{
javax.swing.SwingUtilities.invokeLater(
new Runnable()
{
public void run()
{
createAndShowGUI();
}
});
...
Twently levels of doing that and who can follow???
I tried redoing this code w/o {ie separating definitions) I ended up a compiler error that I couldn't do this
because all my functions were static. If I were to do the construction of the GUI elements in the body of the
constructor - say ButtonAction(), I shouldn't have to worry.
So how would I add an ActionListener() to a button while w/i the constructor???
maddog