Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » VE and Application Look and Feel
VE and Application Look and Feel [message #56710] Sat, 21 August 2004 14:00 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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();
> }
>
Re: VE and Application Look and Feel [message #597526 is a reply to message #56710] Sat, 21 August 2004 22:57 Go to previous message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 396
Registered: July 2009
Senior Member
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();
> }
>
Previous Topic:VE and Application Look and Feel
Next Topic:Cann't create Visual Class with VE
Goto Forum:
  


Current Time: Thu Nov 07 05:09:31 GMT 2024

Powered by FUDForum. Page generated in 0.02224 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top