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.
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, 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!
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 do).
>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
Will consider providing more control over the component sizes.
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 (http://java.sun.com/docs/books/tutorial/uiswing/layout/group.html), 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 ?