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 76644 - Local Variables column widths being reset on minimize
Summary: Local Variables column widths being reset on minimize
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker with 2 votes (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 77191 112638 114032 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-21 15:45 UTC by mcamou
Modified: 2010-04-29 09:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mcamou 2006-05-21 15:45:54 UTC
Whenever you minimize the Call Stack window it doesn't remember the column
widths, you have to reset them each time you open the window
Comment 1 mcamou 2006-05-21 15:48:22 UTC
Sorry, I meant the Local Variables window
Comment 2 Jiri Kovalsky 2006-06-01 12:49:07 UTC
It works fine for me except the toString() column which is already reported as
issue #77191.
Comment 3 mcamou 2006-06-02 18:39:27 UTC
It happens to me every single time. Not just the toString() column, the variable name column gets 
ridiculously wide and the type column too. Could this be platform-dependent? I am running on Java 
1.5.0_06 on OS X 10.4.6 on PPC.
Comment 4 Martin Entlicher 2006-06-26 16:50:45 UTC
*** Issue 77191 has been marked as a duplicate of this issue. ***
Comment 5 Martin Entlicher 2006-06-26 16:52:46 UTC
There is a mechanism for storing the column sizes. We'll chack whether it works
correctly...
Comment 6 _ gordonp 2007-08-16 15:55:19 UTC
*** Issue 112638 has been marked as a duplicate of this issue. ***
Comment 7 Roman Ondruska 2007-08-28 16:55:31 UTC
*** Issue 114032 has been marked as a duplicate of this issue. ***
Comment 8 Martin Entlicher 2007-10-05 08:55:05 UTC
The storage of table columns was fixed:

/shared/data/ccvs/repository/debuggercore/viewmodel/src/org/netbeans/modules/viewmodel/TreeTable.java,v  <--  TreeTable.java
new revision: 1.33; previous revision: 1.32
Comment 9 _ hair 2007-10-05 12:56:44 UTC
Now i get:

java.lang.ArrayIndexOutOfBoundsException: 2 >= 2
	at java.util.Vector.elementAt(Vector.java:427)
	at javax.swing.table.DefaultTableColumnModel.getColumn(DefaultTableColumnModel.java:277)
	at org.netbeans.modules.viewmodel.TreeTable.saveWidths(TreeTable.java:364)
	at org.netbeans.modules.viewmodel.TreeTable.setModel(TreeTable.java:135)
[catch] at org.netbeans.spi.viewmodel.Models$1.run(Models.java:146)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 10 Martin Entlicher 2007-10-05 13:37:20 UTC
Thanks for the fast report. For which view was that exception thrown? I was not able to reproduce it so far...
Comment 11 _ hair 2007-10-05 13:48:55 UTC
> For which view was that exception thrown?

Not sure what you mean exactly by view.
But debugger was attached, with Local Variables topcomponent active.
The exception popped up when returning to netbeans after having used the browser for a bit.
Comment 12 Martin Entlicher 2007-10-05 15:07:44 UTC
Matching the model columns to JTable columns is really tricky. I've found some subtle bug there, so fixing that
hopefully fixes this exception as well. I've added some mor diagnostics, which should help to find the problem if
there's still some problem.

/shared/data/ccvs/repository/debuggercore/viewmodel/src/org/netbeans/modules/viewmodel/Column.java,v  <--  Column.java
new revision: 1.10; previous revision: 1.9

/shared/data/ccvs/repository/debuggercore/viewmodel/src/org/netbeans/modules/viewmodel/TreeTable.java,v  <--  TreeTable.java
new revision: 1.34; previous revision: 1.33
Comment 13 _ gordonp 2007-10-05 16:04:31 UTC
*** Issue 112638 has been marked as a duplicate of this issue. ***
Comment 14 _ hair 2007-10-05 21:18:44 UTC
The ArrayIndexOutOfBoundsException has gone away now.
Comment 15 Quality Engineering 2010-04-29 09:29:07 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.