I use swing JFrame now,and want to activate another Frame after press the button on the original one, but my program ran very wield, that my new frame showed up but I can not see anything on it. But if I move the size of the frame, then everything on the frame showed up.
could any of you guys can figure out what's wrong with me Frame?
I used setVisible(true) and setSize(300, 300) in the end of frame launch mathod.
Mahesh x Bogadi
Joined: Jul 06, 2004
This seems to be a layout problem.
*Which layout are you using? *Please check what is the default JFrame Layout. *before showing the frame call validate().
Joined: Dec 17, 2002
I'm using grad Layout now
I don't know validate(), what's class method is this?