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 68280 - LAYOUT: Aligning issue
Summary: LAYOUT: Aligning issue
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks: 136425
  Show dependency tree
 
Reported: 2005-11-08 13:58 UTC by Marek Grummich
Modified: 2011-10-04 08:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
FileManagmentPrefs.form (58.49 KB, text/plain)
2005-11-08 13:59 UTC, Marek Grummich
Details
FileManagmentPrefs.java (36.44 KB, text/plain)
2005-11-08 14:00 UTC, Marek Grummich
Details
Exception (2.05 KB, text/plain)
2005-11-08 14:01 UTC, Marek Grummich
Details
aligning with indentation issue - .form file (5.40 KB, text/plain)
2007-08-08 16:13 UTC, Tomas Pavek
Details
aligning with indentation issue - .java file (4.38 KB, text/plain)
2007-08-08 16:13 UTC, Tomas Pavek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Grummich 2005-11-08 13:58:50 UTC
Build 051108
Steps:
- open an attached form
- select Preview tab
- select all JComboBoxes and invoke Align Left In Column action from toolbar
!! All JLabels are moved !!
- select JLabel (Show text in icon) and try to move it to the right for a tab space
=> an attached AssertionError is thrown
Comment 1 Marek Grummich 2005-11-08 13:59:39 UTC
Created attachment 26703 [details]
FileManagmentPrefs.form
Comment 2 Marek Grummich 2005-11-08 14:00:37 UTC
Created attachment 26704 [details]
FileManagmentPrefs.java
Comment 3 Marek Grummich 2005-11-08 14:01:16 UTC
Created attachment 26705 [details]
Exception
Comment 4 Tomas Pavek 2005-11-08 14:43:33 UTC
I've fixed the exception. Lowering priority.

/cvs/form/src/org/netbeans/modules/form/layoutdesign/LayoutDesigner.java
new revision: 1.77; previous revision: 1.76
Comment 5 Tomas Pavek 2005-12-09 14:07:02 UTC
More fixes to avoid the layout blowing up when editing after using "Align Left
in Column"; but the align action still needs to be fixed.

/cvs/form/src/org/netbeans/modules/form/layoutdesign/LayoutFeeder.java
new revision: 1.50; previous revision: 1.49
/cvs/form/src/org/netbeans/modules/form/layoutdesign/LayoutOperations.java
new revision: 1.27; previous revision: 1.26
/cvs/form/src/org/netbeans/modules/form/layoutdesign/LayoutDesigner.java
new revision: 1.87; previous revision: 1.86
Comment 6 Tomas Pavek 2007-08-08 16:11:29 UTC
The remaining problem can be reproduced on a simpler example. In the attached form align the two comboboxes via align
left toolbar action. Then the indented labels lose the indent (move left).
Comment 7 Tomas Pavek 2007-08-08 16:13:17 UTC
Created attachment 46353 [details]
aligning with indentation issue - .form file
Comment 8 Tomas Pavek 2007-08-08 16:13:54 UTC
Created attachment 46354 [details]
aligning with indentation issue - .java file
Comment 9 asenk 2011-10-04 08:08:54 UTC
Fixed in 7.1 - Free design improvments
Comment 10 asenk 2011-10-04 08:09:39 UTC
Verified:
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)