Re: [gui-dev] Plastic only working if switching to it manually?

Jens-Uwe Mager <[email protected]> Thu, 15 Jul 2004 17:50:46 +0200
Newsgroups gmane.network.gnutella.limewire.gui.devel
Message-ID <[email protected]>
On Thu, Jul 15, 2004 at 11:25 -0400, Sam Berlin wrote:

> 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>
_______________________________________________
gui-dev mailing list
[email protected]
http://www.limewire.org/mailman/listinfo/gui-dev