Discussion:
[gui-dev] Plastic only working if switching to it manually?
Jens-Uwe Mager
2004-07-15 14:16:33 UTC
Permalink
I was just playing with the new plastic look and feel on my Windows XP
box and I get this look and feel if I switch to some other look and feel
(for example the LimeWire theme) and back to the Windows look and feel.
But if I restart the app I initally always get the original Sun Windows
XP look and feel. Any ideas what could cause this?
--
Jens-Uwe Mager <pgp-mailto:F476EBC2>
Sam Berlin
2004-07-15 14:56:48 UTC
Permalink
I'll take a look into it. Thanks for the heads up, Jens-Uwe.

Thanks,
Sam
Post by Jens-Uwe Mager
I was just playing with the new plastic look and feel on my Windows XP
box and I get this look and feel if I switch to some other look and feel
(for example the LimeWire theme) and back to the Windows look and feel.
But if I restart the app I initally always get the original Sun Windows
XP look and feel. Any ideas what could cause this?
--
Jens-Uwe Mager <pgp-mailto:F476EBC2>
_______________________________________________
gui-dev mailing list
http://www.limewire.org/mailman/listinfo/gui-dev
Sam Berlin
2004-07-15 15:25:03 UTC
Permalink
I can't seem to reproduce this problem. Do you have any modifications
locally that may be contributing to this?

Thanks,
Sam
Post by Sam Berlin
I'll take a look into it. Thanks for the heads up, Jens-Uwe.
Thanks,
Sam
Post by Jens-Uwe Mager
I was just playing with the new plastic look and feel on my Windows XP
box and I get this look and feel if I switch to some other look and feel
(for example the LimeWire theme) and back to the Windows look and feel.
But if I restart the app I initally always get the original Sun Windows
XP look and feel. Any ideas what could cause this?
--
Jens-Uwe Mager <pgp-mailto:F476EBC2>
_______________________________________________
gui-dev mailing list
http://www.limewire.org/mailman/listinfo/gui-dev
_______________________________________________
gui-dev mailing list
http://www.limewire.org/mailman/listinfo/gui-dev
Jens-Uwe Mager
2004-07-15 15:50:46 UTC
Permalink
Post by Sam Berlin
I can't seem to reproduce this problem. Do you have any modifications
locally that may be contributing to this?
No, this also happens a fresh checkout on my XP box, not the modified
source I use on my OS X box. I did try it with the jar files as
generated under OS X and it produces the same problem. I also did remove
my themes directory in my preferences folder, but no change. Using
eclipse I did set a breakpoint on themeChanged and I see it executing
the statement:

UIManager.setLookAndFeel("com.jgoodies.plaf.windows.ExtWindowsLookAndFeel");

without exception, it just appears to have no effect. If I change themes
using the menu I did reach the breakpoint again and it works (for
example switching to the LimeWire theme). Doing it yet again to switch
back to the Windows theme then does indeed activate plastik. If I use my
BeanShell enabled version to look into the data structures I see the
following after startup:

bsh % UIManager.getLookAndFeel();
<[The Microsoft Windows Look and Feel - com.sun.java.swing.plaf.windows.WindowsLookAndFeel]>

And if I switch to the LimeWire theme and back to windows:

bsh % UIManager.getLookAndFeel();
<[The JGoodies Windows Look and Feel - 2003 JGoodies Karsten Lentzsch - com.jgoodies.plaf.windows.ExtWindowsLookAndFeel]>

I am baffled about that one.
--
Jens-Uwe Mager <pgp-mailto:F476EBC2>
Loading...