Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

set dynamic height to JPanel

801682Nov 21 2010 — edited Nov 21 2010
Hello,

I can find java Swing forums so I'm writing here. Maybe you could point me to right direction.

My problem is:
I have a JFrame and for JPanels on it. topPanel, bottomPanel, rigthPanel and leftPanel.
My question is how can I set the dynamic heigth to leftPanel? I have set the width for e.g. to 300. But I want that the panels height will be changing when the frame is size is changing.

How can I do this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2010
Added on Nov 21 2010
3 comments
387 views