Get two Jpanel expand in a JFrame asymmetrically.

Posted by Gabriel A. Zorrilla on Stack Overflow See other posts from Stack Overflow or by Gabriel A. Zorrilla
Published on 2010-03-15T03:33:17Z Indexed on 2010/03/15 3:39 UTC
Read the original article Hit count: 354

Filed under:
|

Hi there. I have a JFrame with two JPanels inside. One is set on west, other on east with BorderLayout. The thing is, it just shows two 10 pixel width, 100% JFrame height strips: alt text

What i want to do is to setsize each panel having as end result that the jpanel on the west be 80% of the jframe width, the remaining 20% to the one on the east. Is it possible? Should I use another layout?

Thanks a lot.

© Stack Overflow or respective owner

Related posts about jpanel

Related posts about java