|
-
August 25th, 1999, 01:46 PM
#1
Pluggable L&F
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
-
August 27th, 1999, 07:54 AM
#2
Re: Pluggable L&F
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...af_papers.html
and also at TSC:
http://java.sun.com/products/jfc/tsc...wing-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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|