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 208620 - Sorting the result table by the first result column marks line numbering also as sort column
Summary: Sorting the result table by the first result column marks line numbering also...
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: NETFIX
Depends on:
Blocks:
 
Reported: 2012-02-19 21:45 UTC by matthias42
Modified: 2012-04-04 10:08 UTC (History)
0 users

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 matthias42 2012-02-19 21:45:18 UTC
When selecting the first column of a resultset as ordering column not only this column is marked as the sorting column (noted by the arrow), but also the line numbering column. This can be fixed by setting the corresponding model index for the line numbering column to an impossible value. Inserting 

col.setModelIndex(-1);

in line 93 of JXTableRowHeader.java does this

(I'll refrain from putting a one line patch into this bug :-).
Comment 1 Jiri Rechtacek 2012-04-02 18:48:41 UTC
(In reply to comment #0)
> When selecting the first column of a resultset as ordering column not only this
> column is marked as the sorting column (noted by the arrow), but also the line
> numbering column. This can be fixed by setting the corresponding model index
> for the line numbering column to an impossible value. Inserting 
> 
> col.setModelIndex(-1);
> 
> in line 93 of JXTableRowHeader.java does this
> 
> (I'll refrain from putting a one line patch into this bug :-).
Right, I modified more line by javac hints to make it larger :-)
core-main/rev/bd7cb534dce6
Comment 2 Quality Engineering 2012-04-04 10:08:01 UTC
Integrated into 'main-golden', will be available in build *201204040400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/bd7cb534dce6
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #208620: Sorting the result table by the first result column marks line numbering also as sort column