title: unable to get java swing components
body: <pre><code>import javax.swing.JButton;
  import javax.swing.JFrame;
  import javax.swing.JTextArea;
  import java.awt.BorderLayout;
  
  public class Fram {
      public static void main(String[] args) {
          JTextArea map;
          JButton btn;
          map= new JTextArea();
          btn= new JButton("hello");
          JFrame frame= new JFrame("jarvis");
          frame.setVisible(true);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setSize(600,600);
          frame.setLayout(new BorderLayout());
          frame.add(map, BorderLayout.CENTER);
          frame.add(btn, BorderLayout.SOUTH);
      }
  }
  </code></pre>
  
  <p>I am using this code to get a text area but I only get the frame without any textarea or button.</p>