Can Box Layout accept size of included elements?

Posted by Roman on Stack Overflow See other posts from Stack Overflow or by Roman
Published on 2010-03-29T13:21:17Z Indexed on 2010/03/29 13:23 UTC
Read the original article Hit count: 347

Filed under:
|
|
|

I used myPanel.setLayout(new BoxLayout(myPanel, BoxLayout.Y_AXIS)); to order panels vertically (one under another one). But myPanel defined in the shown way change the included panel. In more details, it tries to set the same hight and width for the included panels. Can it be changed? Can BoxLayout adopt size of the included elements?

© Stack Overflow or respective owner

Related posts about java

Related posts about swing