简体   繁体   中英

Programming using Netbeans with GUI

Is there a way to a program to be shown like in the Netbeans preview design screen:

previewGUI

and not like the default running program GUI:

在此处输入图片说明

?

Are you looking to set a "look and feel" ?

Here's the code from the link:

// Get the native look and feel class name
String nativeLF = UIManager.getSystemLookAndFeelClassName();

// Install the look and feel
try {
 UIManager.setLookAndFeel(nativeLF);
} catch (InstantiationException e) {
} catch (ClassNotFoundException e) {
} catch (UnsupportedLookAndFeelException e) {
} catch (IllegalAccessException e) {
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM