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 37922 - TreeTableView selection + focus looks horrible
Summary: TreeTableView selection + focus looks horrible
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: L&F, UI
: 37977 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-09 17:26 UTC by Jesse Glick
Modified: 2008-12-22 19:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Focussed TreeView with a node selection - OK (4.31 KB, image/png)
2003-12-09 17:27 UTC, Jesse Glick
Details
Focussed TreeTableView with a node selection - yick! (4.28 KB, image/png)
2003-12-09 17:27 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2003-12-09 17:26:49 UTC
Prior to the proppanel rewrite, TTV would show
selection, but not focus (or the active row). This
was bad.

Now it shows the active row when the component is
focussed, which is good. Unfortunately it looks
horrible on Metal L&F at least, not at all like
TreeView: the focus border is black (should be
dark blue), and is drawn too narrowly, actually
inside the selection block, nearly clipping the
text of the node label.

See screenshots. Ideally the TTV selection would
look very much like the TV selection.
Comment 1 Jesse Glick 2003-12-09 17:27:16 UTC
Created attachment 12485 [details]
Focussed TreeView with a node selection - OK
Comment 2 Jesse Glick 2003-12-09 17:27:38 UTC
Created attachment 12486 [details]
Focussed TreeTableView with a node selection - yick!
Comment 3 _ tboudreau 2003-12-09 17:42:40 UTC
I agree it's not gorgeous, just consistent with what TTV already did
for columns *other* than the tree column (and since keyboard
navigation now works, you're noticing that it's ugly).  I did make the
square 1 pixel bigger than it was before (but the tree cell height may
be smaller, depending on your font).

It *might* be possible to draw the tree grid square as the focus
rectangle - that would be ideal.  It didn't work out too well when I
tried it on the property sheet table for disabled properties - the
problem is convincing the table that it needs to *repaint* the grid
lines - otherwise as focus moves from cell to cell, it leaves droppings.
Comment 4 _ tboudreau 2003-12-10 16:20:58 UTC
*** Issue 37977 has been marked as a duplicate of this issue. ***
Comment 5 _ tboudreau 2004-02-17 16:48:17 UTC
Fixed in trunk.
Comment 6 Marian Mirilovic 2004-03-16 09:46:59 UTC
verified in NB3.6 (RC1 200403151830)