title: Swing apps doesn't run
body: <p>I have a problem in using swing. I don't know what is the cause of this but i'm just trying to create a simple frame app using swing at it give me a lot of error.</p>
  
  <pre><code>    import javax.swing.JFrame;
  public class StacksGui {
  public static void main(String args[]) 
       JFrame frame = new JFrame();
       frame.setVisible(true);
       frame.setSize(100,200);
       frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  }
  </code></pre>
  
  <hr>
  
  <pre><code>    Exception in thread "main" java.lang.ExceptionInInitializerError
      at javax.swing.JPanel.updateUI(Unknown Source)
      at javax.swing.JPanel.&lt;init&gt;(Unknown Source)
      at javax.swing.JPanel.&lt;init&gt;(Unknown Source)
      at javax.swing.JPanel.&lt;init&gt;(Unknown Source)
      at javax.swing.JRootPane.createGlassPane(Unknown Source)
      at javax.swing.JRootPane.&lt;init&gt;(Unknown Source)
      at javax.swing.JFrame.createRootPane(Unknown Source)
      at javax.swing.JFrame.frameInit(Unknown Source)
      at javax.swing.JFrame.&lt;init&gt;(Unknown Source)
      at StacksGui.main(StacksGui.java:9)
  Caused by: java.lang.IllegalArgumentException: 0 incompatible with Text-specific LCD contrast key
      at java.awt.RenderingHints.put(Unknown Source)
      at sun.awt.windows.WDesktopProperties.getDesktopAAHints(Unknown Source)
      at sun.awt.windows.WToolkit.getDesktopAAHints(Unknown Source)
      at sun.awt.SunToolkit.getDesktopFontHints(Unknown Source)
      at sun.awt.windows.WDesktopProperties.getProperties(Unknown Source)
      at sun.awt.windows.WToolkit.updateProperties(Unknown Source)
      at sun.awt.windows.WToolkit.lazilyInitWProps(Unknown Source)
      at sun.awt.windows.WToolkit.lazilyLoadDesktopProperty(Unknown Source)
      at java.awt.Toolkit.getDesktopProperty(Unknown Source)
      at javax.swing.UIManager.&lt;clinit&gt;(Unknown Source)
      ... 10 more
  </code></pre>