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

java repaint the frame or the panel?

Anu Bhagat
Ranch Hand

Joined: Jun 20, 2008
Posts: 64
I am stuck on the repaint issue.

Here is the description of the problem

I have a myFrame which extends from JFrame,
I have myPanel (JPanel) and I add this to myFrame,

I then make few components and add them to myPanel

I move these components around in myPanel.. now I set a new size of myPanel.

I repaint myPanel. My components appear fine but myPanel does not resize to the new size that I set above.

This is done in a large application so I don not have code to provide.

I am really stuck on this problem, and would deeply appreciate any help.

Thanks in advance..

Anu

SCJP5.0, SCJA
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4658
    
    5

Learn to use layout managers, and use them correctly.


luck, db
There are no new questions, but there may be new answers.
Anu Bhagat
Ranch Hand

Joined: Jun 20, 2008
Posts: 64
I solved it. It was a simple oversight on my part. Thanks for listening to me.

Anu
 
jQuery in Action, 2nd edition
 
subject: java repaint the frame or the panel?