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

Summary: LAYOUT: Aligning issue
Product: guibuilder Reporter: Marek Grummich <mgrummich>
Component: Natural LayoutAssignee: issues@guibuilder <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 136425    
Attachments: FileManagmentPrefs.form
FileManagmentPrefs.java
Exception
aligning with indentation issue - .form file
aligning with indentation issue - .java file

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)