aspose file tools
The moose likes Swing / AWT / SWT and the fly likes swing doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: swing doubt
 
Similar Threads
Problem with a swing application
How do I navigate from one applet-1 to another applet-2 using a button on applet-1?
Two windows get focus in turn depends on user action?
Converting from null Layout to Layouts
flashing a tab in windows taskbar...