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 106223

Summary: Text position problems in dirchooser at higher font sizes
Product: platform Reporter: _ tboudreau <tboudreau>
Component: Directory ChooserAssignee: David Simonek <dsimonek>
Status: RESOLVED FIXED    
Severity: blocker CC: dsimonek, kfrank
Priority: P3 Keywords: A11Y, I18N
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 127170    
Attachments: Screen shot

Description _ tboudreau 2007-06-10 06:19:53 UTC
I've been having some ugly problems with the directory chooser when running with --fontsize 16
Comment 1 David Simonek 2007-06-11 09:18:19 UTC
Passing to correct subcomponent.
Comment 2 David Simonek 2007-06-13 11:51:01 UTC
Which problems? I cannot reproduce, please tell me details.
Comment 3 _ tboudreau 2007-06-13 17:15:19 UTC
Actually the description is not quite correct (I filed the bug a few hours after the presentation where I noticed something looked bad).

The problem is the Y position at which the text is painted if the text is taller than the icon.  See attached screen shot - the descenders of all of the p's are 
clipped by the cell below and the text is not centered relative to the item's icon.  Screen shot at --fontsize 18 attached.  Doesn't look so bad here, but in some 
fonts g's look really strange because the end of the descender curves back up but the bottom is missing.
Comment 4 _ tboudreau 2007-06-13 17:16:02 UTC
Created attachment 43639 [details]
Screen shot
Comment 5 David Simonek 2007-06-15 11:44:04 UTC
Hmmm, it seems HtmlRenderer is used as tree cell renderer...nice shot into own army, Tim :-)
Comment 6 _ tboudreau 2007-06-15 17:35:29 UTC
:-)

Well, I can take a look at that, if I can ever undo what uninstalling the wrong combination of modules with the new update center did to my system (where 
does it store this stuff, the registry?  Clean build and clean userdir and they're still disabled and I can't start any 6.0 build now!).

Does it do anything like wrappering HtmlRendere.Renderer in its own cell renderer?  We don't have this problem with any of the explorer views, so I'm 
wondering how it could happen here.
Comment 7 Jiri Prox 2007-09-17 20:12:00 UTC
Obsolete milestone, please reevaluate
Comment 8 David Simonek 2007-10-05 12:33:16 UTC
working on it...
Comment 9 David Simonek 2007-10-05 12:59:59 UTC
fixed in main trunk, 

Checking in DirectoryChooserUI.java;
/cvs/core/swing/dirchooser/src/org/netbeans/swing/dirchooser/DirectoryChooserUI.java,v  <--  DirectoryChooserUI.java
new revision: 1.26; previous revision: 1.25

reason was that BasicTreeUI installs tree.setRowHeight(16), at least on Win L&F...hm...