posted 13 years ago
I'm guessing this is all old news, but you may want to try to change the paintComponent lines to:
I just compiled and ran a slightly different version and it all seems to work fine. If you'd like to try it I will post it below.
Did the first two iterations work on the command line? I'm just learning also, but hopefully this will help.
I added a little code to the catch statements also.
I was also having the closing problem as discussed in some other forum topics, and so add an EXIT_ON_CLOSE statement to the setUpGui method.
Good Luck,
Matt