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

and not like the default running program GUI:

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

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) {
}