M
mrstephengross
I have a simple Swing application. My JFrame uses a BoxLayout, and I
set a minimum size for it:
myFrame.setLayout(new BoxLayout(myFrame.getContentPane(),
BoxLayout.Y_AXIS);
myFrame.setMinimumSize(new Dimension(500, 500));
On Windows, the application respects my minimum size requirements and
does NOT let me shrink the window smaller than 500x500. On Linux, I
can shrink the window as much as I want.
How can I make Linux respect the minimum size requirements?
Thanks,
--Steve
set a minimum size for it:
myFrame.setLayout(new BoxLayout(myFrame.getContentPane(),
BoxLayout.Y_AXIS);
myFrame.setMinimumSize(new Dimension(500, 500));
On Windows, the application respects my minimum size requirements and
does NOT let me shrink the window smaller than 500x500. On Linux, I
can shrink the window as much as I want.
How can I make Linux respect the minimum size requirements?
Thanks,
--Steve