title: how to import javax.swing in android studio
body: <p>I have just setup Android Studio and started a simple application. Well started is an over statement, I got stuck on first few lines and am unable to import JFrame into android studio. </p>
  
  <p>I have the latest SDK installed aling with LibGDX. I am still not able to setup JFrame. I have searched the net/youtube and no solutions have been found.</p>
  
  <p>I can see the javax and swing in my external libraries but just cannot import.</p>
  
  <p>Any ideas what I am doing wrong or not doing?</p>
  
  <p>I am not looking for a "how to tutorial", I just a pointer where I should go hunting for the answer.</p>
  
  <p>wow, not huge amount of response. </p>
  
  <p>Please advise if I have asked a stupid question or difficult question.</p>
  
  <pre><code>public hungryDog() {
  
          JFrame jframe = new JFrame(); 
          Timer timer = new Timer(20, this); 
  
                  renderer = new Renderer(); 
          rand = new Random(); 
  
  
          jframe.add(renderer); 
          jframe.setTitle("Hungry Dog"); 
          jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
          jframe.setSize(WIDTH, HEIGHT); 
          jframe.addMouseListener(this); 
          jframe.addKeyListener(this); 
          jframe.setResizable(false); 
          jframe.setVisible(true); 
  
  
          dog = new Rectangle(WIDTH / 2 - 10, HEIGHT / 2 - 10, 20, 20); 
          columns = new ArrayList&lt;Rectangle&gt;(); 
  
  
          addColumn(true); 
          addColumn(true); 
          addColumn(true); 
          addColumn(true); 
  
  
          timer.start(); 
      } 
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/IEg8c.png" alt="enter image description here"></p>