How can I set the look and feel with JDesktop and JInternalFrames

Posted on 2006-04-23
Last Modified: 2008-03-17
   I am having some problems setting the look and feel while using a JDesktopPane and JInternalFrames.  I want to use a windows look and feel for my applications and the JInternalFrames are coming up as the java look and feel.  Can anyone help me with setting the look and feel with the JInternalFrames and JDesktops?

Question by:kassidy2010
    LVL 86

    Expert Comment

    How are you setting it?

    Author Comment

    right now I am not setting it, it is using the default.  I set the main frame but not the JDesktop or JInternalFrame.  I coudl not figure that out.  I tried using the UIManager fro the JDesktop and InternalFrame but it did not work.  I use the UIManager for the Main Frame
    LVL 92

    Accepted Solution

    Make sure you set the L&F *before* you create the desktop pane.
    Best place is probably in your main before you create the gui that way everything will use the specified L&F.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
    Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now