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 224278 - Change Visible Columns button works wrongly
Summary: Change Visible Columns button works wrongly
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: PC Solaris
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-28 08:32 UTC by soldatov
Modified: 2013-01-05 02:31 UTC (History)
2 users (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 soldatov 2012-12-28 08:32:14 UTC
Easy to reproduce in Oracle Solaris Studio, but NetBeans has same problem too

>System Info: 
  Product Version         = NetBeans IDE Dev (Build 201212270001) (#5398ac8d7977)
  Operating System        = SunOS version 5.11 running on x86
  Java; VM; Vendor        = 1.7.0_10; Java HotSpot(TM) Client VM 23.6-b04; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.7.0_10-b18
  Java Home               = /usr/jdk/jdk1.7.0_10/jre
  System Locale; Encoding = en (nb); UTF-8

Scenario:
- Create Samples|C/C++|Multi Processing Application sample
- Call context menu on project's node. Select Step into
- Push Window|Debugging|Threads menu item
==> I see Name and Executing function columns
- Press Change Visible Columns button
- Switch on all columns. Press OK.
- Press Change Visible Columns button
- Switch off all columns. Press OK.
- Press Change Visible Columns button
- Switch on "Address:" columns. Press OK.
- Press Step Over
==> Address column disappeared
- Press Change Visible Columns button
- Switch on "Address:" columns. Press OK.
==>
java.lang.IllegalArgumentException: moveColumn() - Index out of range
	at javax.swing.table.DefaultTableColumnModel.moveColumn(DefaultTableColumnModel.java:179)
	at org.netbeans.swing.etable.ETableColumnModel.moveColumn(ETableColumnModel.java:365)
	at org.netbeans.modules.viewmodel.OutlineTable$1.columnAdded(OutlineTable.java:207)
	at javax.swing.table.DefaultTableColumnModel.fireColumnAdded(DefaultTableColumnModel.java:532)
	at org.netbeans.swing.etable.ETableColumnModel.addColumn(ETableColumnModel.java:360)
	at org.netbeans.swing.etable.ETableColumnModel.setColumnHidden(ETableColumnModel.java:342)
	at org.netbeans.swing.etable.ColumnSelectionPanel.changeColumnVisibility(ColumnSelectionPanel.java:257)
	at org.netbeans.swing.etable.ColumnSelectionPanel.showColumnSelectionDialog(ColumnSelectionPanel.java:404)
	at org.netbeans.swing.etable.ColumnSelectionPanel.showColumnSelectionPopupOrDialog(ColumnSelectionPanel.java:265)
	at org.netbeans.swing.etable.ETable$1.actionPerformed(ETable.java:1082)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
	at java.awt.Component.processMouseEvent(Component.java:6505)
Comment 1 Vladimir Voskresensky 2012-12-29 11:07:19 UTC
Martin, please, have a look.
Comment 2 Martin Entlicher 2013-01-03 14:54:28 UTC
Thanks for the exact steps. I've reproduced the error. Looking into it...
Comment 3 Martin Entlicher 2013-01-04 11:49:47 UTC
Fixed by changeset:   243846:58c4a3120d79
http://hg.netbeans.org/core-main/rev/58c4a3120d79
Comment 4 Quality Engineering 2013-01-05 02:31:18 UTC
Integrated into 'main-golden', will be available in build *201301050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/58c4a3120d79
User: mentlicher@netbeans.org
Log: #224278: Assure that the updated columns are set up correctly.