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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -