I want to change the look and feel of a Swing application under user control. I have the following code that almost works
The UI starts up in Metal / MoodyBlueTheme, and then switches to napkin; after I switch back, however, the drop-down box does not behave correctly in Metal any more. If I click on the arrow of the drop down and drag it down slowly, it paints some strange artifact that looks like an out-of-place element of the drop-down.
To run this you will need the napkin jar, or you can replace that L&F with some other one that you do have. I tried setting it to various other values (WindowsLookAndFeel, MotifLookAndFeel), but couldn't get Eclipse to recognize any of them, don't know what jar to put in the path for them.
Also it didn't compile with the MoodyBlueTheme so I just used the OceanTheme. It workd fine for me.
Joined: May 29, 2005
Thanks -- As I think you mean, after I was changing to "system look and feel" instead of napkin, it seems to work correctly. I *think* what that means is the napkin look and feel, at least the one I found and have, is faulty.
I like the idea of the napkin look and feel, but it doesn't seem to work correctly; you choose drop-downs and the background color of the panel changes, etc. But I didn't think it would affect how the other UI works after I changed back.