facebook

[Matisse] How do I set run-time LNF to match design-time LNF

  1. MyEclipse IDE
  2.  > 
  3. FAQ – Installation, Configuration & Subscriptions
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #286046 Reply

    Riyad Kalla
    Member

    When the Matisse4MyEclipse designer is run, it takes on the appearance of the native LNF, but when you run your app, unless set, it will use the default JRE LNF (Metal in Java 1.4, Ocean in Java 5 and 6, and Nimbus in Java 7).

    To make your run-time Matisse Forms match your design-time forms, you can use the following Java code in your project, set either in the very first line of your main method, or very close to it:

    
    UIManager.setLookAndFeel(UIManager. getSystemLookAndFeelClassName());
    

    this will tell the Swing UIManager to set the LNF to match the system’s default LNF, which should match the Matisse4MyEclipse design-time look.

Viewing 1 post (of 1 total)
Reply To: [Matisse] How do I set run-time LNF to match design-time LNF

You must be logged in to post in the forum log in