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 70504 - Focus rectangle on Mac OSX
Summary: Focus rectangle on Mac OSX
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 5.x
Hardware: All Mac OS X
: P2 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords: L&F, UI
Depends on:
Blocks:
 
Reported: 2005-12-16 13:52 UTC by jrojcek
Modified: 2008-12-22 21:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Incorrect focus rectangle on Mac OSX. (18.58 KB, application/octet-stream)
2005-12-16 13:53 UTC, jrojcek
Details
diff of the patch (2.40 KB, patch)
2006-01-03 09:59 UTC, Milos Kleint
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jrojcek 2005-12-16 13:52:14 UTC
On Mac OSX, the focus rectangle isn't painted correctly. See attached picture. P2 cause it's very bad 
impression on Mac OSX.
Comment 1 jrojcek 2005-12-16 13:53:22 UTC
Created attachment 27893 [details]
Incorrect focus rectangle on Mac OSX.
Comment 2 Petr Nejedly 2006-01-02 15:07:37 UTC
Can't evaluate.
Milosi, can you please look at it?
Thanks!
Comment 3 Milos Kleint 2006-01-03 09:58:32 UTC
fixed by completely removing the blue rectagle. The ultimate source of the bug
is probably somewhere in the macosx JDK LF code.
1. it was using a fallback blue, that is not native to aqua
2. native apps like xcode don't have any rectable, neither do swing apps on macosx.

Checking in awt/src/org/openide/awt/HtmlLabelUI.java;
/cvs/openide/awt/src/org/openide/awt/HtmlLabelUI.java,v  <--  HtmlLabelUI.java
new revision: 1.11; previous revision: 1.10

Comment 4 Milos Kleint 2006-01-03 09:59:03 UTC
Created attachment 28137 [details]
diff of the patch
Comment 5 jrojcek 2006-01-03 10:56:16 UTC
I agree with the fix. The multi selection doesn't work like on Win platforms (with lead selection) so the 
rectangle is not needed.

Please fix it for 5.0 as the current rectangle looks very bad. (I'm not sure if I should set some keyword or 
what).
Comment 6 Milos Kleint 2006-01-04 12:47:35 UTC
patch reviewed by dsimonek
Comment 7 Milos Kleint 2006-01-04 13:58:25 UTC
merged to release50 branch
Comment 8 Jaromir Uhrik 2006-01-10 08:51:32 UTC
Verified in build of 20060108 from release 5.0.