title: Can GWT handle Java Swing?
body: <p>I'm having some trouble building a GWT application.  </p>
  
  <p>Here: <a href="https://developers.google.com/web-toolkit/tools/gwtdesigner/features/menu_editing" rel="noreferrer">https://developers.google.com/web-toolkit/tools/gwtdesigner/features/menu_editing</a> Google themselves talk of the possibility of Java Swing, JFrame implementation in the GWT. I am a Java newbie and don't know what the SWT equivalent of Swing is, so I haven't tried that option.</p>
  
  <p>When I try to run my code (which is built from the GWT Designer) I get errors at each line that uses JFrame:</p>
  
  <pre><code>JFrame frame = new JFrame();
  
          JMenuBar menuBar = new JMenuBar();
          frame.setJMenuBar(menuBar);
  
          JMenu mnNewMenu = new JMenu("Test");
          menuBar.add(mnNewMenu);
  
          JMenu mnNewMenu_1 = new JMenu("Test");
          mnNewMenu.add(mnNewMenu_1);
  </code></pre>
  
  <p>Returning: [ERROR] [gwtearthdemo] - Line 96: No source code is available for type javax.swing.JFrame; did you forget to inherit a required module?</p>
  
  <p>Ditto for JMenuBar, JMenu.</p>
  
  <p>I have seen errors similar to this with answers suggesting that the function in question is not applicable to GWT.  However, Google suggests it is.  Any advice here?</p>