We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3242844 commit 6b9aa10Copy full SHA for 6b9aa10
1 file changed
src/main/java/javancss/Javancss.java
@@ -46,6 +46,8 @@
46
import javancss.parser.JavaParserTokenManager;
47
import javancss.parser.TokenMgrError;
48
49
+import javax.swing.*;
50
+
51
/**
52
* While the Java parser class might be the heart of JavaNCSS,
53
* this class is the brain. This class controls input and output and
@@ -671,6 +673,14 @@ public Javancss( String[] args ) throws IOException
671
673
672
674
if ( cl.hasOption( "gui" ) )
675
{
676
+ try
677
+ {
678
+ UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
679
+ }
680
+ catch ( Exception e )
681
682
683
684
JavancssFrame pJavancssFrame = new JavancssFrame( cl.getArgList() );
685
/* final Thread pThread = Thread.currentThread(); */
686
pJavancssFrame.addWindowListener( new WindowAdapter()
0 commit comments