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.
[ BUILD # : 200509211800 ] [ JDK VERSION : 1.5.0_04 ] When trying to resize a scrollpane containing a table got the exception below. The scrollpane is placed in a panel on a tabbedpane. java.lang.IllegalStateException: javax.swing.JScrollPane[,254,158,427x294,invalid,layout=javax.swing.ScrollPaneLayout$UIResource,alignmentX=0.0,alignmentY=0.0,border=com.sun.java.swing.plaf.windows.XPStyle$XPFillBorder@1d38dae,flags=16777544,maximumSize=,minimumSize=,preferredSize=,columnHeader=javax.swing.JViewport[,1,1,425x21,invalid,layout=javax.swing.ViewportLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777224,maximumSize=,minimumSize=,preferredSize=,isViewSizeSet=false,lastPaintPosition=java.awt.Point[x=0,y=0],scrollUnderway=false],horizontalScrollBar=javax.swing.JScrollPane$ScrollBar[,0,0,0x0,invalid,hidden,layout=com.sun.java.swing.plaf.windows.WindowsScrollBarUI,alignmentX=0.0,alignmentY=0.0,border=,flags=4194632,maximumSize=,minimumSize=,preferredSize=,blockIncrement=10,orientation=HORIZONTAL,unitIncrement=1],horizontalScrollBarPolicy=HORIZONTAL_SCROLLBAR_AS_NEEDED,lowerLeft=,lowerRight=,rowHeader=,upperLeft=,upperRight=,verticalScrollBar=javax.swing.JScrollPane$ScrollBar[,0,0,0x0,invalid,hidden,layout=com.sun.java.swing.plaf.windows.WindowsScrollBarUI,alignmentX=0.0,alignmentY=0.0,border=,flags=4194632,maximumSize=,minimumSize=,preferredSize=,blockIncrement=10,orientation=VERTICAL,unitIncrement=1],verticalScrollBarPolicy=VERTICAL_SCROLLBAR_AS_NEEDED,viewport=javax.swing.JViewport[,1,22,425x271,invalid,layout=javax.swing.ViewportLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777224,maximumSize=,minimumSize=,preferredSize=,isViewSizeSet=true,lastPaintPosition=java.awt.Point[x=0,y=0],scrollUnderway=false],viewportBorder=] is not attached to a vertical group at org.jdesktop.layout.GroupLayout.checkComponents(GroupLayout.java:823) at org.jdesktop.layout.GroupLayout.prepare(GroupLayout.java:801) at org.jdesktop.layout.GroupLayout.layoutContainer(GroupLayout.java:655) at org.netbeans.modules.form.layoutdesign.support.SwingLayoutBuilder.createLayout(SwingLayoutBuilder.java:127) at org.netbeans.modules.form.layoutdesign.support.SwingLayoutBuilder.setupContainerLayout(SwingLayoutBuilder.java:73) at org.netbeans.modules.form.VisualReplicator.updateContainerLayout(VisualReplicator.java:255) at org.netbeans.modules.form.FormDesigner$FormListener.run(FormDesigner.java:1708) at org.netbeans.modules.form.FormDesigner$FormListener.formChanged(FormDesigner.java:1670) at org.netbeans.modules.form.FormModel.fireEvents(FormModel.java:978) [catch] at org.netbeans.modules.form.FormModel$EventBroker.run(FormModel.java:1078) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
I am sorry I am not able to reproduce this issue. The attached exception only shows that there was some bug before and the description of the situation is too general. Could you, please, provide more details. It would be ideal to attach the problematic form in the last good state and describe the steps that lead to this problem. As for the resizing - you may attach a snapshot showing how exactly is the scrollpane resized. Thank you in advance.
Created attachment 25252 [details] Testcase for described problem
The attached file contains a NetBeans project that shows the described problem. The TaskFrame form contains a tabbedpane with a table in a scrollpane. Trying to resize the scrollpane causes the exception (on my machine). Attempting to delete buttons sometimes also causes an assertion.
Thank you for the additional information. Now I am able to reproduce the problem.
The exception thrown when the buttons are deleted was caused by incorrect failover for the first exception (model listener remained deactivated). It should be fixed now.
The exception happened when resizing the scrollpane (table) vertically. Now fixed. /cvs/form/src/org/netbeans/modules/form/layoutdesign/LayoutFeeder.java,v <-- LayoutFeeder.java new revision: 1.30; previous revision: 1.29