 |
|
 |
 |
|
 |
 |
| Author |
Message |
|
|
Post subject: [Matisse] How do I set run-time LNF to match design-time LNF
Posted: Jun 20, 2008 - 05:25 PM
|
|
Moderator


Joined: Jan 06, 2004
Posts: 23305
|
|
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 (Meta 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:
| Code: |
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. |
|
|
| |
|
|
|
 |
|
|
| |
|
|
 |
|
 |
|
|
|
 |