i have a class that extends JFrame, With all the Textfields and buttons.
when i run that program, i always have to resize (drag the mouse) the frame to view the components, otherwise, no components will appear. What can i do?
u not setSize for ur Frame. let set size for your frame, and run it again
in when first create a jframe ex: myJFrame set Size for it myJFrame.setSize(400,500); or # import java.awt.*; in main method add: myJFame.setSize(new Dimension(400,500));
The second option (other than explicitly setting the size) is to use the "pack" method on JFrame (which actually comes from Frame and maybe from Window).