有没有办法像在 Netbeans 预览设计屏幕中一样显示程序:
而不像默认的运行程序GUI:
?
您是否希望设置“外观和感觉”?
这是链接中的代码:
// 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) {
}