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 258790 - IllegalStateException: javax.swing.JTextField[,0,0,0x0,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.sun.java.swing.plaf.windows.XPStyle$XPFi
Summary: IllegalStateException: javax.swing.JTextField[,0,0,0x0,invalid,layout=javax.s...
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-12 12:42 UTC by Exceptions Reporter
Modified: 2016-04-12 17:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 223471


Attachments
stacktrace (3.05 KB, text/plain)
2016-04-12 12:42 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-04-12 12:42:11 UTC
This bug was originally marked as duplicate of bug 226743, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) Client VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Windows 7

User Comments:
GUEST: After made a commit and push in github appears this problem, but just editting the JInternalFrame. When the application is running, it renders the form without problems.




Stacktrace: 
java.lang.IllegalStateException: javax.swing.JTextField[,0,0,0x0,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.sun.java.swing.plaf.windows.XPStyle$XPFillBorder@1927bd0,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=0,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=109,g=109,b=109],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=2,left=2,bottom=2,right=2],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255],selectionColor=javax.swing.plaf.ColorUIResource[r=51,g=153,b=255],columns=0,columnWidth=0,command=,horizontalAlignment=LEADING] is not attached to a vertical group
   at javax.swing.GroupLayout.checkComponents(GroupLayout.java:1090)
   at javax.swing.GroupLayout.prepare(GroupLayout.java:1040)
   at javax.swing.GroupLayout.layoutContainer(GroupLayout.java:910)
   at org.netbeans.modules.form.layoutdesign.support.SwingLayoutBuilder.createLayout(SwingLayoutBuilder.java:199)
   at org.netbeans.modules.form.layoutdesign.support.SwingLayoutBuilder.setupContainerLayout(SwingLayoutBuilder.java:108)
   at org.netbeans.modules.form.VisualReplicator.setupContainerLayout(VisualReplicator.java:900)
Comment 1 Exceptions Reporter 2016-04-12 12:42:13 UTC
Created attachment 159231 [details]
stacktrace
Comment 2 Tomas Pavek 2016-04-12 17:21:10 UTC
From one reporter:
"I changed the JInternalFrame layout to any other, then return to free design..."
That might be a culprit, but without knowing at least to which layout (and better having the sample form), it is probably not enough to find the cause.

From the log the following warnings (and their number happening at once) are interesting:

WARNING: Component jLabel1 found more than once in the horizontal layout definition. Removing superfluous occurrences.
WARNING: Component localizacionTextField found more than once in the horizontal layout definition. Removing superfluous occurrences.
WARNING: Component yacimientoTextField found more than once in the horizontal layout definition. Removing superfluous occurrences.
WARNING: Component clasePozoComboBox found more than once in the horizontal layout definition. Removing superfluous occurrences.
WARNING: Component jLabel33 found more than once in the horizontal layout definition. Removing superfluous occurrences.
WARNING: Component tipoPozoComboBox found more than once in the horizontal layout definition. Removing superfluous occurrences.
WARNING: Component jLabel30 found more than once in the horizontal layout definition. Removing superfluous occurrences.
WARNING: Component jLabel32 found more than once in the horizontal layout definition. Removing superfluous occurrences.
WARNING: Component bloqueTextField found more than once in the horizontal layout definition. Removing superfluous occurrences.
WARNING: Component jLabel1 found more than once in the vertical layout definition. Removing superfluous occurrences.
WARNING: Component localizacionTextField found more than once in the vertical layout definition. Removing superfluous occurrences.

It indicates the layout was broken heavily.