VE and Application Look and Feel [message #56710] |
Sat, 21 August 2004 14:00 |
Eclipse User |
|
|
|
Originally posted by: Jeffrey_Mason.MSN.com
Can anyone tell me why the following will not change the look and feel on my
XP Workstation:
public static void main(String[] args) {
ImportBonds ste = new ImportBonds();
//JFrame.setDefaultLookAndFeelDecorated(true);
String lookAndFeel = null;
//lookAndFeel = "com.sun.java.swing.plaf.gtk.GTKLookAndFeel";
lookAndFeel = "com.sun.java.swing.plaf.motif.MotifLookAndFeel";
try {
UIManager.setLookAndFeel(lookAndFeel);
} catch (Exception e) { }
ste.show();
}
--
BoomerangThree
|
|
|
Re: VE and Application Look and Feel [message #56737 is a reply to message #56710] |
Sat, 21 August 2004 22:57 |
Eclipse User |
|
|
|
Originally posted by: myersj.nospam.gmail.com
Are you using Run As->Java Bean or Run As->Java Application? When you
run as a Java Bean, the main method isn't executed. If you want the L&F
change to reflect in the VE, choose the L&F in the Visual Editor
preferences under the Java item.
- Jeff
BoomerangThree wrote:
> Can anyone tell me why the following will not change the look and feel on my
> XP Workstation:
>
> public static void main(String[] args) {
> ImportBonds ste = new ImportBonds();
> //JFrame.setDefaultLookAndFeelDecorated(true);
>
> String lookAndFeel = null;
> //lookAndFeel = "com.sun.java.swing.plaf.gtk.GTKLookAndFeel";
> lookAndFeel = "com.sun.java.swing.plaf.motif.MotifLookAndFeel";
> try {
> UIManager.setLookAndFeel(lookAndFeel);
> } catch (Exception e) { }
>
> ste.show();
> }
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02224 seconds