Click to See Complete Forum and Search --> : Pluggable L&F


RastaClown
August 25th, 1999, 01:46 PM
I have a JPanel containing a few JButtons in an application. I want to keep the look and feel for the entire app as the default, Metal, but I want to change the L&F of the JButtons to Windows. How can i do this? I have tried calling the setLookAndFeel(new Windows()) method, and then calling the updateUI on the buttons, but it doesn't changed. Do i have to call it before i create the JButtons, or after i create them and before i add them, or after all that?
Anyone have any ideas?
thanks

t

JFM
August 27th, 1999, 07:54 AM
Hi,

this is not a solution of your problems. I can give you only some links where you can learn more about the plaf:
The Plaf Papers at The Swing Connection:
http://java.sun.com/products/jfc/tsc/plaf_papers/plaf_papers.html
and also at TSC:
http://java.sun.com/products/jfc/tsc/archive/what_is_arch/swing-arch/swing-arch.html

The letter is an excellent and detailed description of the Swing architecture. There's a big part about the Plaf at the end of this paper. It helped me very much to understand what's going on.

Hope it helps,
JFM.