NetBeans output window text color

549 views
Skip to first unread message

JB

unread,
May 27, 2008, 12:11:43 AM5/27/08
to The Java Posse
Hey all,

I'd really like to alter the text color of the output window in
NetBeans (6.1). Currently, it's a light-ish gray on a white
background, and I have to strain my eyes quite a bit to read it.

I'm thinking this has to be an issue that someone else has already
encountered and resolved, but I'm having trouble tracking anything
down on it. I did run across a brief mention on Tor's blog that
indicated that the coloring options for that window were managed
differently than those of the editor window, etc., but I'm hoping that
doesn't mean they can't be changed at all.

After doing some unfruitful web searching in an effort to answer this
question, I thought I'd come here since I figure there may be more
than a few NetBeans experts hanging around.

Any help would be greatly appreciated!

Thanks,
Jared

Casper Bang

unread,
May 27, 2008, 8:26:28 PM5/27/08
to The Java Posse
By no means an expert, so take this with a grain of salt. I don't
think you can change it, there doesn't seem to be an API for this. You
could always do your own build of NetBeans though, I believe the
particular component you would be interested in tweaking is
org.netbeans.core.output2.OutputWindow.

/Casper

sherod

unread,
May 28, 2008, 3:23:13 AM5/28/08
to The Java Posse
Compiling your own build of an IDE because you don't like the
background color of a window

Man, you are hard core :)

Peter Becker

unread,
May 28, 2008, 3:34:14 AM5/28/08
to java...@googlegroups.com
Particularly if it really shouldn't be that hard to fire up your hex editor and find the couple of bytes to change in the class files.

Casper Bang

unread,
May 28, 2008, 7:09:12 AM5/28/08
to The Java Posse
> Compiling your own build of an IDE because you don't like the
> background color of a window
> Man, you are hard core :)

Not at all. The amazing thing about NetBeans is that you can check
out, open, manipulate and run without ever leaving the IDE. In
particular, one must suspect the JTextComponent declared at line 71:
http://hg.netbeans.org/main/file/84bbf7630347/core.output2/src/org/netbeans/core/output2/OutputEditorKit.java

But I guess the correct approach would be to override the EditorKit or
UIDelegate. Anyone well versed in Swing skinning?

> Particularly if it really shouldn't be that hard to fire up your hex editor
> and find the couple of bytes to change in the class files.

Oh the change itself is easy, but how to locate the correct integer?!
Also, I would suspect the particular value you would need to change,
is located in some concrete TextUI implementation of your rt.jar

/Casper

Peter Becker

unread,
May 28, 2008, 8:29:01 AM5/28/08
to java...@googlegroups.com

On Wed, May 28, 2008 at 9:09 PM, Casper Bang <caspe...@gmail.com> wrote:

[..]
> Particularly if it really shouldn't be that hard to fire up your hex editor
> and find the couple of bytes to change in the class files.

Oh the change itself is easy, but how to locate the correct integer?!
Also, I would suspect the particular value you would need to change,
is located in some concrete TextUI implementation of your rt.jar

I was trying to be funny. I don't even have a hex editor installed anymore -- I think the last one I used might well have been a DOS application :-)

  Peter

Reply all
Reply to author
Forward
0 new messages