| 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: 4163
|
|
|
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
|
 |
 |
|
|
subject: java repaint the frame or the panel?
|
|
|