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 197713 - UpdatedResultSetCellRenderer misses View => Model Coordinate Transformation
Summary: UpdatedResultSetCellRenderer misses View => Model Coordinate Transformation
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: NETFIX
Depends on:
Blocks:
 
Reported: 2011-04-13 16:24 UTC by matthias42
Modified: 2011-05-07 05:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed patch (see comment) (1.71 KB, patch)
2011-04-13 16:24 UTC, matthias42
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description matthias42 2011-04-13 16:24:06 UTC
Created attachment 107726 [details]
Proposed patch (see comment)

Hey,

when testing the dataview component, I noticed, that the updated cells are not correctly shown, when changing the sort order.

I tested with a setup of:

a    a
b    b
c    c

and changed the second columns c to an a and sorted afterwards by the second column in the reverse order. I expected the first row to be highlighted, but the highlight remained in the last row. After some digging I think I thought the two positions, that are wrong.

The first determins, whether the special "UpdatedResultSetCellRenderer" is to be used and the second is in the renderer itself, where the wrong comparison variable is fetched from the model.

Please see the attached patch for a more detailed view.

Greetings

Matthias
Comment 1 Jiri Rechtacek 2011-05-06 09:19:57 UTC
Thanks, your patch was applied in core-main/rev/a373bf7f5462
Comment 2 Quality Engineering 2011-05-07 05:35:29 UTC
Integrated into 'main-golden', will be available in build *201105070000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a373bf7f5462
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #197713: UpdatedResultSetCellRenderer misses View => Model Coordinate Transformation