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 64959 - [50cat] IllegalStateException when resizing JScrollPane
Summary: [50cat] IllegalStateException when resizing JScrollPane
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-23 08:54 UTC by rknapen
Modified: 2005-10-05 09:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Testcase for described problem (11.32 KB, application/x-compressed)
2005-09-28 10:46 UTC, rknapen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rknapen 2005-09-23 08:54:50 UTC
[ 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)
Comment 1 Jan Stola 2005-09-26 10:55:59 UTC
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.
Comment 2 rknapen 2005-09-28 10:46:40 UTC
Created attachment 25252 [details]
Testcase for described problem
Comment 3 rknapen 2005-09-28 10:48:56 UTC
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.
Comment 4 Jan Stola 2005-09-29 10:25:46 UTC
Thank you for the additional information. Now I am able to reproduce the problem.
Comment 5 Jan Stola 2005-09-29 12:56:40 UTC
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.
Comment 6 Tomas Pavek 2005-10-05 09:46:48 UTC
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