File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

swing doubt

Rahul Bharadwaj

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


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).

I agree. Here's the link:
subject: swing doubt
jQuery in Action, 3rd edition