Things dont display untill i maximize the screen

Hi,

I am facing a weired problem in my swing app. I have a login screen in which when user give his id and password and click login, the next screen should come. What is happening in my app is when user clicks login, and next screen is displayed, it is blank. If I maximize the window then it shows me the contents. I dont know whats wrong is happening in my app. Can any1 please suggest something. I'm novice in swing.

Pankaj

[446 byte] By [pbhomiaa] at [2007-10-2 20:40:24]
# 1
It is difficult to comment without seeing your code. Can you post your code for the window which is not working?Test this window without the login window and see if it is working properly.
ajitrma at 2007-7-13 23:23:36 > top of Java-index,Desktop,Core GUI APIs...
# 2
Well this is something weird.. the second page sometimes come properly and sometimes dont. will post a sample a code soon
pbhomiaa at 2007-7-13 23:23:36 > top of Java-index,Desktop,Core GUI APIs...
# 3
I cant post the code here..has anyone encountered similar issue? i'm still waiting for some solution. I guess there is some problem in paint.
pbhomiaa at 2007-7-13 23:23:36 > top of Java-index,Desktop,Core GUI APIs...
# 4
ensure you are setting the frame's visibility to true AFTER you have added the components to the frame
Michael_Dunna at 2007-7-13 23:23:36 > top of Java-index,Desktop,Core GUI APIs...
# 5
Call repaint() after adding all components.
shelziba at 2007-7-13 23:23:36 > top of Java-index,Desktop,Core GUI APIs...