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 37375 - search shading in windows 2000 & classic l&f unreadable
Summary: search shading in windows 2000 & classic l&f unreadable
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Help System (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: L&F
Depends on:
Blocks:
 
Reported: 2003-11-20 13:36 UTC by John Jullion-ceccarelli
Modified: 2008-12-22 16:36 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot of help viewer with bad shading (25.97 KB, image/png)
2003-11-20 13:39 UTC, John Jullion-ceccarelli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Jullion-ceccarelli 2003-11-20 13:36:29 UTC
When you run a Search in the help viewer and open
one of the results, the words you search for a
black on dark blue, unreadable.
Comment 1 John Jullion-ceccarelli 2003-11-20 13:39:05 UTC
Created attachment 12244 [details]
screenshot of help viewer with bad shading
Comment 2 _ tboudreau 2003-11-20 22:21:55 UTC
I can look into it, but I'm suspecting it's a JavaHelp problem - they
will need to correctly detect what color to use for the foreground,
not just the background.

Maybe some of this can be specified in the CSS?  I wouldn't know where
to look, but you might want to check it.
Comment 3 _ tboudreau 2003-11-21 08:30:22 UTC
Appears to affect classic as well.  I'll try to find out if we can do
something about it.
Comment 4 Patrick Keegan 2003-12-15 19:14:32 UTC
I believe this is a JDK problem. Hopefully the fix of bug 4761990 will
solve this. Chris, have you verified that it does?


 See the following link for a workaround (I don't know if it would
work in NB) -
http://www.javadesktop.org/forums/thread.jspa?forumID=10&threadID=451

Comment 5 _ tboudreau 2003-12-15 19:41:11 UTC
We could try doing something for a workaround - but it will end up
changing the selection color for every editor pane in the ide
(probably will affect selection in custom string editors, text boxes,
etc.).

Dafe, passing to you, since you've taken over our custom UI settings
for different look and feels, and I don't know where you're putting
them.  To summarize, there's a JavaHelp bug that on win classic,
search results are highlighted dark blue with black text.

The workaround Patrick mentions is available is:
UIManager.put("EditorPane.selectionBackground",Color.lightGray);

Up to you, or pass it back to me if you think I should fix it, but let
me know where my stuff from NbTheme has gone/is going.
Comment 6 Chris Kutler 2003-12-16 19:27:49 UTC
I have verified that it is still broken in 1.4.2-b28 (I can attach
screen shots if desired). 4761990 says it is verified in 1.4.2_02.

Here is the contents of my config file

-J-Xms24m -J-Xmx96m
-J-Dnetbeans.logger.console=true
-J-ea
-jdkhome C:\j2sdk1.4.2
-J-DPlastic.tabStyle=Metal
-J-DPlastic.defaultTheme=DesertBluer
-ui com.jgoodies.plaf.plastic.PlasticXPLookAndFeel
Comment 7 Chris Kutler 2004-02-04 01:52:13 UTC
What is the workaround for this. As most users use the search engine
to find help, and as this problem makes the search engine unusable, is
there a way for the users to fix this?

I am using the latest 3.6 dev build with the default windows 2000 l&f
and this problem happens for me.
Comment 8 _ tboudreau 2004-02-26 20:05:40 UTC
Workaround is to globally change the highlight color for all JTextPanes by putting a 
different color into UIDefaults.  We'll do this for 3.6.
Comment 9 _ tboudreau 2004-02-27 00:59:57 UTC
Fixed in trunk.  It is now a random pastel blue.

Checking in WindowsLFCustoms.java;
/cvs/core/windows/src/org/netbeans/core/windows/view/ui/plaf/WindowsLF
Customs.ja
va,v  <--  WindowsLFCustoms.java
new revision: 1.6; previous revision: 1.5
done
Comment 10 Patrick Keegan 2004-03-04 22:06:01 UTC
removing RELNOTE keyword
Comment 11 Marian Mirilovic 2005-01-25 09:10:16 UTC
verified in NB4.1(200501241900)