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.
The Swing GUI Builder can be very difficult/uncooperative some times. Often times when creating a form where I want drop-downs to align with each other on the right side of the form, with a little bit of padding, the GUI Builder aligns all the drop-down controls against the far right edge of the form instead of padded. Sometimes re-creating the Form or changing Layout methods from "Free Design", to something else, back to "Free Design" will allow me to adjust the right edges with padding. This problem is illustrated with the attached screen-shot as follows: 1) (Left Pane) I selected the combo-box to the right of "Shading" to show the right-aligned edge of that drop-down. This is has the CORRECT right-align behaviour (the combo-box above it is correct as well). 2) (Center Pane) I want to align the combo-box to the right of "Emitter Geometry" with the right edge of the combo boxes above it, so I select the right-edge handles and drag it to my desired position. The GUI builder shows that the right-edge is aligned with the combo-boxes above it. (CORRECT) 3) (Right Pane) I let go of the right handle to place the right edge of the combo-box aligned with the combo-boxes above it, but then the right-edges of that combo-box and all the other combo-boxes snap to the RIGHT edge of the form. (NOT CORRECT)
Created attachment 57775 [details] Illustration of the Layout problem.
Created attachment 57776 [details] Java class that has this problem.
Created attachment 57777 [details] Java form that illustrates this problem.
To see this problem in action: 1) Load the attached CameraPreferences.java and .form files in Netbeans 6.0. 2) Switch to "Design" mode. 3) Select the combo-box component to the right of "Emitter Geometry". 4) Drag the right edge of the component to align it with the combo-boxes above it (which leaves some padding between the right edge of the form and the combo-box). 5) Watch the right edges of that combo-box and the ones above it snap to the right-most edge of the form. (Screen shot also illustrates problem)
Thank you for a precise bug report. I was able to reproduce the issue.
Has anyone looked into this lately? This is a major issue as creating nice looking forms is almost impossible and makes Matisse _very_ frustrating to use.
What about a fix for that problem ? Does anyone find a workaround solution in the meantime ?
I have the same problem from the begining...I am using Netbeans since version 6.0. Everytime there is a new realease I hope the bug is fixed but it is always there. This is a major issue and I don't understand why there is no improvement and visible efforts (release changes) for fix it. Design form is extremely important... I am working on a big ERP project (at the end, hundreds of complex forms) and it is at lot of time wasted in dealing with those bugs. It will be great to have a "lock component" feature or disabling auto-aligment Please help... Other people are reporting those problems from years now... It will be very nice to have a reaction of a Netbeans developper about that major issue. And to know what they are doing to fix that problem. I continue to find it sad that such an extremely powerful, amazingly diverse development system doesn't come up with a simple and reliable way to do layout.
Still valid Product Version: NetBeans IDE Dev (Build 201110030601) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17 System: Linux version 2.6.38-11-generic running on i386; UTF-8; en_US (nb)
I can reproduce the described problem on the attached test case in NB 7.0, but it works in 7.1 and 7.2. There have been many fixes for 7.1, this particular problem was likely addressed as well. Closing this issue as fixed.