Login  Register

XP look&feel

Posted by Philippe Grosjean on Aug 29, 2005; 7:10pm
URL: http://imagej.273.s1.nabble.com/XP-look-feel-tp3704952.html

Hello,

First, congratulations for this wonderful program to all who contributed
to it!

I start using and programming it (although I am *not* a Java programmer,
I learn much with the macro recorder). I would like to run ImageJ under
Windows XP with an XP look&feel. I read here
(http://java.sun.com/docs/books/tutorial/uiswing/misc/plaf.html) that
this is possible, starting from Java 1.4.2. However, I cannot manage to
get this Win XP look&feel with ImageJ. I have tried:
+ the command line option:
-Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel
added to ImageJ.cfg

+ the 'swing.properties' file added to the /jre/lib subdir.

+ changing line 50 of Java2.java from
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
to
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
and recompiling ImageJ.

But I still got the old looking widgets. I tried ImageJ 1.35B with Java
1.5.0_04. I think these are the latest versions. I can manage to get a
*partial* XP look&feel by adding a java.exe.manifest in the same dir as
javaw.exe. However, buttons and checkboxes still keep the old look&feel,
while other controls are OK.

May be I don't understand when the Java2 class is called. Is JRE
1.5.0_04 considered as Java 2 or not?

Thanks for the help,

Philippe Grosjean

..............................................<°}))><........
  ) ) ) ) )
( ( ( ( (    Prof. Philippe Grosjean
  ) ) ) ) )
( ( ( ( (    Numerical Ecology of Aquatic Systems
  ) ) ) ) )   Mons-Hainaut University, Pentagone (3D08)
( ( ( ( (    Academie Universitaire Wallonie-Bruxelles
  ) ) ) ) )   8, av du Champ de Mars, 7000 Mons, Belgium
( ( ( ( (
  ) ) ) ) )   phone: + 32.65.37.34.97, fax: + 32.65.37.30.54
( ( ( ( (    email: [hidden email]
  ) ) ) ) )
( ( ( ( (    web:   http://www.umh.ac.be/~econum
  ) ) ) ) )          http://www.sciviews.org
( ( ( ( (
..............................................................