MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
support-rkalla
Post subject: [Matisse] How do I set run-time LNF to match design-time LNF  PostPosted: Jun 20, 2008 - 05:25 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

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:
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.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits