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 180293 - Hard coded colors in the debugger
Summary: Hard coded colors in the debugger
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: PC Linux
: P4 normal with 1 vote (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 180249 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-04 10:35 UTC by mjr_1974
Modified: 2013-06-04 12:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Picture of the error in the breakpoints window (8.33 KB, image/png)
2010-02-04 10:40 UTC, mjr_1974
Details
Picture of the error in the stack trace window (10.23 KB, image/png)
2010-02-04 10:40 UTC, mjr_1974
Details
Themes file (16.93 KB, text/xml)
2010-02-10 13:12 UTC, mjr_1974
Details
Dark JTable in NetBeans (80.20 KB, image/png)
2010-02-11 08:11 UTC, mjr_1974
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mjr_1974 2010-02-04 10:35:46 UTC
The debugger has black hard-coded font colors both in the stack trace window and in the breakpoints window.
The lines affected are the current execution line in the stack trace and the line that shows a current breakpoint hit. In both cases the problem happens when the lines are not selected.
I am attaching pictures of the problems.
Comment 1 mjr_1974 2010-02-04 10:40:07 UTC
Created attachment 93873 [details]
Picture of the error in the breakpoints window
Comment 2 mjr_1974 2010-02-04 10:40:41 UTC
Created attachment 93874 [details]
Picture of the error in the stack trace window
Comment 3 mjr_1974 2010-02-04 10:42:40 UTC
*** Bug 180249 has been marked as a duplicate of this bug. ***
Comment 4 mjr_1974 2010-02-04 10:45:01 UTC
Sorry I submitted the but twice, but the previous one was incomplete (it didn't show the problem in the breakpoints window) and it was not listed under "my bugs" (that's why I created a new one)
Comment 5 Martin Entlicher 2010-02-10 09:44:13 UTC
I do not see any hard-coded colors in breakpoints window. Can you please attach your themes.xml file?
I've test it with http://ui.netbeans.org/docs/ui/themes/themes.xml and it seems to behave correctly.
We know about the problem in stack trace window (Debugging) - there's issue #154689 for that already.
Comment 6 mjr_1974 2010-02-10 13:12:39 UTC
Created attachment 94060 [details]
Themes file

I hope this is the file you need, because it's the only one I have in my system (/usr/share/gnome/help/system-admin-guide/C/themes.xml). Let me know if this is not what you were looking for. 
The theme I have installed in Ubuntu is called MidnightOSX (I hope this helps)
Comment 7 Martin Entlicher 2010-02-10 13:55:59 UTC
Well, this is not what I had in mind. I thought that you've created themes.xml file in <NetBeans user dir>/config/ folder. So another question - how did you change the color in NetBeans? Where did you configure background to be black, etc.
Comment 8 Martin Entlicher 2010-02-10 14:03:23 UTC
Well, O.K. I've got it now. You're using Gnome Look and Feel (the default) and installed the MidnightOSX which is interpreted by the the Gnome Look and Feel and changes that way the color in NetBeans. :-) I'll check how that works. Thanks.
Comment 9 Martin Entlicher 2010-02-10 15:45:15 UTC
IMHO this is a bug of the Gnome look and feel. I did not manage to install Midnight OS X, but got similar behavior with "High Contrast Inverse" appearance.
Can you please check if am ordinary JTable behaves in the same way as the breakpoints window? Thanks.
Comment 10 mjr_1974 2010-02-11 08:11:22 UTC
Created attachment 94087 [details]
Dark JTable in NetBeans

I am wondering if my color profile would have anything to do with it, so I am attaching it just in case.
To install the GNome Midnight OS X Theme you can go here:

http://art.gnome.org/download/themes/gtk2/1329/GTK2-MidnightOSX.tar.gz

and install it in System->Preferences->Appearance (if you're using Ubuntu, which is my case).

Regarding the behavior with others JTables, even in the same instance of NetBeans they look good (that's why I assumed it is a debugger bug). 
All the programs I run with the Midnight OS X Theme installed look good, so I don't think it's a GNome bug... 
I am attaching a picture of my NetBean's KeyMap JTable so you can take a look at it. Let me know if this example is not what you're looking for.
Comment 11 Marian Mirilovic 2010-05-18 12:23:57 UTC
user provided additional info -> reopen
Comment 12 Martin Entlicher 2013-05-30 12:48:15 UTC
It's fixed by changeset:   255095:967b5ea0c71e
http://hg.netbeans.org/core-main/rev/967b5ea0c71e
Comment 13 Quality Engineering 2013-05-31 01:21:18 UTC
Integrated into 'main-golden', will be available in build *201305302301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/967b5ea0c71e
User: mentlicher@netbeans.org
Log: #180293: Ensure that contrasting colors are used.
Comment 14 Jiri Kovalsky 2013-06-04 12:01:54 UTC
Product Version: NetBeans IDE Dev (Build 201306022301)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b13
System: Linux version 3.0.0-12-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/dev
Cache directory: /home/cesilko/.cache/netbeans/dev