Newbie: Prevent stretching of widgets when using LayoutManagers?



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

.



Relevant Pages

  • Re: IE 7 Window Size
    ... Stretch that second window out to the desired size- don't use maximize. ... I want to resize it and make it that size ... the ie window opens up and that is when it is small. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Report preview window size
    ... Try the Auto Resize property of the report. ... To resize the report window within the Access window, ... > stretch it each time I run a report. ...
    (microsoft.public.access.reports)
  • Re: Resizable Views
    ... Now with your advises I can resize my ... what if resize the window? ... Typically I don't use the Picture control to put an image on the background ...
    (microsoft.public.vc.mfc)
  • Re: Window Size of IE Browser
    ... Use you mouse and stretch it to full size then click File, ... > All of a sudden when I want to open a new Explorer window, ... Does anyone know how to resize the new window so that when I want to open ...
    (microsoft.public.windows.inetexplorer.ie6.setup)
  • Re: Newbie SWING repiant/update question
    ... > I am putting an ImageCanvas object inside a Scrollpane. ... > repaint() plus invalidatefor ALL objects. ... > passed parent (which is the Jtabbedpane inside a frame) to the ... closing and reopening the window make everything resize and ...
    (comp.lang.java.gui)