aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes swing doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "swing doubt" Watch "swing doubt" New topic
Author

swing doubt

Rahul Bharadwaj
Greenhorn

Joined: Jun 07, 2006
Posts: 3
I have created a GUI for a tax invoice system in swing...the requirement states that this is not to be allowed to be resizeable. My problem is that when the GUI comes up i see a blank window, and only when i change the window size (by ignoring the requirement ) all the components show up.I call the repaint() method also...still doesn't work. Am i missing something??
Mathias Nilsson
Ranch Hand

Joined: Aug 21, 2004
Posts: 367
Have you tried


JFrame.pack()


SCJP1.4
memati bas
Ranch Hand

Joined: Jan 29, 2006
Posts: 85
Write setVisible(true) after adding all the components(or containers) into your Top Level Container(JFrame).

Regards
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: swing doubt