On Mon, 6 Jun 2005 at 22:36:53 +0200, Jochen Schneider wrote:
> Hi there,
> first of all, thanks a lot for this wonderful piece of software. I
> first got interested in it because of the CL implementation in Java,
> but now started to use the editor more and more often.
> I got more of an aesthetical question concerning Swing: I am using J
> under Linux and don't like the purplish-greyish Swing look. What can I
> do to change it? I tried to fiddle with the Xresources and the Swing
> Look-and-Feel, but that didn't work. Any ideas?
By default, j uses its own look-and-feel, which is not really tied in
to Swing the way Swing expects it to be.
Look at src/org/armedbear/j/DefaultLookAndFeel.java, particularly
addCustomEntriesToTable() at line 108.
This stuff is pretty messy to begin with, and the code in that file is
certainly nothing to write home about, but it should be a simple matter
of programming to get the colors the way you want them.
Or, you might try adding this line to ~/.j/prefs:
lookAndFeel = "Metal"
In theory, this should disable j's look-and-feel customizations and get
you back to the default Swing look, at which point you could maybe
fiddle with the Swing customizations to accomplish your goal, but I
think there are bugs in this area and not all of j's customizations are
really disabled. I don't think anyone actually runs j this way, so no
one has ever gone to the trouble to make it work exactly right.