linux - Under Netbeans/Java Swing, how do I run the program as GTK+ Look and Feel? -


I am trying to answer this with no results to Google I find answers about the running of Netbeans in GTK skin .... I do not want this.

I have a Java swing application, I can fix it completely under GTK + C / X, when I click on the right JPNL form -> preview However, whenever I program ( Build + run), as a result the GUI looks and feels a Java swing.

How can I enable GTK + for this program permanently?

You have to do according to basic form and experience.

When your app starts, up

  Public Static Zero Setup Endfell () {try {UIManager.setLookAndFeel (UIManager.getSystemLookAndFeelClassName ()); } Hold (exception e) {System.out.println ("Error setting original LAF:" + E); }}  

Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -