This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 96766 - Missing features from GroupLayout
Summary: Missing features from GroupLayout
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: issues@guibuilder
Depends on:
Reported: 2007-02-28 12:07 UTC by Tim Lebedkov
Modified: 2009-12-17 03:59 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Tim Lebedkov 2007-02-28 12:07:10 UTC
Well, I have created some panels with GroupLayout and they look good enough. But
the resizing behavior is not acceptable.

First of all: whos idea was not to use the constraints as GroupLayout defines
them? What is "Horizontal Size", "Horizontal Resizable" etc.?

What I'd like to reproduce is:
.add(jComboBoxLanguage, 10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,    
and I can not! I did not find a way to customize the code (please correct me if
I am wrong).

Please fix it!
Comment 1 Tomas Pavek 2007-02-28 13:13:01 UTC
Could you please describe what would you like to achieve, i.e. what resizing 
behavior? The GUI builder can't produce every possible code statement in 
GroupLayout (the GroupLayout is not a definition of what the GUI builder can 
Comment 2 Tim Lebedkov 2007-02-28 16:08:30 UTC
>the GroupLayout is not a definition of what the GUI builder can do).
that is the point! Why? Shouldn't this be changed?

I'd like to have this:
Minimum width of 10, normal width as preferred and maximum width as preferred
Comment 3 Tomas Pavek 2007-03-23 10:48:57 UTC
Will consider providing more control over the component sizes.
Comment 4 ludom 2009-12-17 03:59:23 UTC
I totally agree with Tim. When you consider that gui designer generated code is read only, each missing parameter becomes very annoying. 

Therefore I consider it is a real defect.

For example, according to official Sun tutorial (, it is possible to make a component fully resizable with a command like this :

group.addComponent(component, 0, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)

Maybe, I miss something, but I don't manage to specify minum size (above its value is zero) using netbeans GUI designer. Resizing the component allows to set preffered and maximum size, but I'm unable to change the minium size.

Since generated code for minimum size is always GroupLayout.PREFERRED_SIZE, my components are never resized less than their preferred size, wich is very different of the BorderLayout behavior for instance.

There are already property editors in "layout" section of the selected component to specify prefered horizontal/vertical size.  

Why not adding property editor allowing to set minimum horizontal/vertical size ?