2

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:

enter image description here

?

1
  • 1
    Use alt+print-screen to capture only the active window. See also How do I create screenshots? (for tips on making great screenshots). Also note it is spelled 'Java' as opposed to 'JAVA'. Commented Aug 22, 2012 at 23:02

1 Answer 1

5

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) {
}
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks a lot. Wasn't familiar with that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.