It shows up correctly for me without having to click anything. Often, if you need to click, move, resize, or maximize/minimize something for it to show up, you can solve it by using the validate () from the Container class.
http://java.sun.com/javase/6/docs/api/java/awt/Container.html#validate( )
But again, I did not have to do this. I was able to see your GUI without doing anything.
VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711
Did adding validate () not do anything?
Try moving lines 57 and 58 from where they are to the BOTTOM of the function. Then add:
first.validate ();
at the very bottom of the function. See if that makes a difference. I'm not sure it will, but it's worth a shot.
VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711