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 129225 - LAYOUT: Swing GUI Builder sometimes dis-allows right justification.
Summary: LAYOUT: Swing GUI Builder sometimes dis-allows right justification.
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker with 1 vote (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks: 136425
  Show dependency tree
 
Reported: 2008-03-05 03:39 UTC by dustin_mccartney
Modified: 2012-06-14 10:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Illustration of the Layout problem. (21.16 KB, image/png)
2008-03-05 03:39 UTC, dustin_mccartney
Details
Java class that has this problem. (7.80 KB, text/plain)
2008-03-05 03:41 UTC, dustin_mccartney
Details
Java form that illustrates this problem. (12.53 KB, text/plain)
2008-03-05 03:42 UTC, dustin_mccartney
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dustin_mccartney 2008-03-05 03:39:11 UTC
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)
Comment 1 dustin_mccartney 2008-03-05 03:39:58 UTC
Created attachment 57775 [details]
Illustration of the Layout problem.
Comment 2 dustin_mccartney 2008-03-05 03:41:28 UTC
Created attachment 57776 [details]
Java class that has this problem.
Comment 3 dustin_mccartney 2008-03-05 03:42:03 UTC
Created attachment 57777 [details]
Java form that illustrates this problem.
Comment 4 dustin_mccartney 2008-03-05 03:46:12 UTC
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)
Comment 5 Jan Stola 2008-03-05 11:03:56 UTC
Thank you for a precise bug report. I was able to reproduce the issue.
Comment 6 dustin_mccartney 2008-05-15 03:16:07 UTC
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.
Comment 7 genamiga 2009-10-01 07:35:42 UTC
What about a fix for that problem ?
Does anyone find a workaround solution in the meantime ?
Comment 8 genamiga 2009-10-01 12:21:39 UTC
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. 
Comment 9 asenk 2011-10-04 11:37:12 UTC
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)
Comment 10 Tomas Pavek 2012-06-14 10:03:10 UTC
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.