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.
Sometimes when moving the right edge of components (JTextField being one) toward the right edge of the parent component, the parent component (JPanel) resizes for an unexplained reason. Attached is a sample Form that exhibits this problem. 1) Open the attached Form in Design mode. 2) Select the JTextField which contains the text "Move right edge to the right --->". 3) Move the right edge handle of this component right towards the button labeled "Version". 4) Watch the parent component's width increase [WRONG] Expected Behavior The parent component's width should not resize. This _might_ be related to Issue #129225 (http://www.netbeans.org/issues/show_bug.cgi?id=129225)
Created attachment 57933 [details] Java file for Form which resizes incorrectly.
Created attachment 57934 [details] Form that incorrectly resizes based on Component changes.
More odd behavior can be seen by loading the attached Java/Form and: 1) Switch to "Design" mode. 2) Delete the button labeled "Version" to the right of the JTextField containing the text "Move right edge to the right --->". 3) Select the JTextField containing the text "Move right edge to the right --->" and move it's right edge handle so that it aligns with the RIGHT edge of the "Version" buttons below it. 4) When you let go of the mouse button, the JTextField snaps back to its original width. [WRONG] Expected Behavior The JTextField should be re-sized to have its right edge matched with the right edges of the "Version" buttons.
Reproducible.
The second case is fixed. The first one is 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)
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/117d1833eb2f User: Tomas Pavek <tpavek@netbeans.org> Log: #129494: several fixes in gap reduction
Both cases should be fixed now.