JPanel grows too wide - how to stop it?
I have two panels (JPanel) with etched borders, side by side. The left panel
p is growing far too wide after adding a few buttons to it. It looks bad and
I would like its width to stay as compact as possible. I tried:
....after adding the buttons, and it looks better, but this does not solve
The problem is that both panels are on a parent panel (BoxLayout, LINE_AXIS)
which is placed in the bottom of the application frame, divided from the
rest using a horizontal splitter. If I move the splitter up, the right
panel's height grows as expected, but the p retains its size, of course.
How to set maximum width only? Or maybe I should use different layout for
the parent panel?
|All times are GMT. The time now is 06:48 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.