CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Pluggable L&F

  1. #1
    Join Date
    Aug 1999
    Posts
    10

    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


  2. #2
    Join Date
    Aug 1999
    Location
    Germany, Munich
    Posts
    6

    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
  •  





Click Here to Expand Forum to Full Width

Featured