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 57145 - HtmlRenderer doesn't paint correctly tree cell selection
Summary: HtmlRenderer doesn't paint correctly tree cell selection
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2005-03-29 17:31 UTC by Jiri Rechtacek
Modified: 2008-12-22 19:38 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 Jiri Rechtacek 2005-03-29 17:31:46 UTC
HtmlRendererImpl doesn't correctly paint the selection in TreeView during DnD
operation. An user can drag a node from active TreeView over unfocused
component, but the drop target is not selected same like on focused component.
This selection make relevant feedback for users. Please, fix it NB4.1 in the
best. Thanks
Hint: consider HtmlLabelUI.getBackgroundFor(this) in getTreeCellRendererComponent().
Comment 1 Jan Chalupa 2005-03-30 13:46:28 UTC
Martin, please look at this.
Comment 2 Martin Krauskopf 2005-03-31 11:02:30 UTC
Fixed.

Checking in openide/src/org/openide/awt/HtmlLabelUI.java;
new revision: 1.20; previous revision: 1.19
Comment 3 Jiri Rechtacek 2005-03-31 12:09:26 UTC
Verified, thanks.
Comment 4 Martin Krauskopf 2005-04-05 23:38:22 UTC
I had to rollback this commit (see 57476 regression).
I don't know yet how to solve both issue since HtmlLableUI doesn't have access
to all needed information when its getBackroundFor() method is being called.
Comment 5 Martin Krauskopf 2005-04-06 14:13:07 UTC
This was regression of issue #52292. Fix prevents unfocused selection to be
fully bright (white) in Metal L&F.
It's regression, fix annoying visual user impact and it's simple fix -> should
go into 4.1

Jirko could you verified it. I'll commit then to 4.1. Thanks.

Checking in core/swing/plaf/src/org/netbeans/swing/plaf/metal/MetalLFCustoms.java;
new revision: 1.8; previous revision: 1.7
Comment 6 Jiri Rechtacek 2005-04-06 15:24:50 UTC
Verified, works for me also after this fix. TX
Comment 7 Martin Krauskopf 2005-04-07 10:30:56 UTC
Fixed in 4.1

Checking in MetalLFCustoms.java;
new revision: 1.7.4.1; previous revision: 1.7