Newbie: Prevent stretching of widgets when using LayoutManagers?
- From: francisrammeloo@xxxxxxxxxxx
- Date: 28 Feb 2006 12:40:26 -0800
Hi all,
The problem with my Java components is that they stretch along when I
resize the window. They become way too big.
I've been able to prevent this using:
thePanel.setMinimumSize( thePanel.getPreferredSize() );
thePanel.setMaximumSize( thePanel.getPreferredSize() );
But once I started using JTabbedPane inside another JTabbedPane this
method does not seem to work anymore.
Can anyone help?
Any help or hint will be greatly appreciated!
Best regards,
Francis
.
- Follow-Ups:
- Re: Newbie: Prevent stretching of widgets when using LayoutManagers?
- From: Monique Y. Mudama
- Re: Newbie: Prevent stretching of widgets when using LayoutManagers?
- Prev by Date: Re: setting color for a JComboBox
- Next by Date: Blank Applet on Startup
- Previous by thread: java swing gui/windows xp problem
- Next by thread: Re: Newbie: Prevent stretching of widgets when using LayoutManagers?
- Index(es):
Relevant Pages
|
|