Is this your first time here? SwingWiki is a Java Swing Developer community site with an big archive of Swing-related usenet groups and mailing lists, but also tips, tricks and articles and book reviews written by your colleagues from around the world. If you came here through a search engine and did not find what you were looking for, make sure to check the wiki table of contents.

Always initialize Frame size

If you do not set the size of the Frame (Window, JFrame, JWindow, JDialog) before displaying it on screen, it may have width and height 0 and you will not see it. So, always initialize Frame size, either by hand (setSize(x,y)) or by calling pack() after initializing all components.

See also Pack Frames.

 

Comments? Corrections? Contact us or Login to edit pages directly (registration is free and takes less than displaying a JLabel)
  best/always_initialize_frame_size.txt · Last modified: 2005/02/15 18:56 by 195.252.81.100 (gojko)
 
Recent changes | RSS changes | Table of contents | News Archive | Terms And Conditions | Register | The Quest For Software++| Ruby Resources

Sedo - Buy and Sell Domain Names and Websites project info: swingwiki.org Statistics for project swingwiki.org etracker� web controlling instead of log file analysis