title: JTextField not showing up in JPanel on launch
body: <p>The <code>JTextField</code> is there because when I move the mouse over where it's supposed to be the mouse icon changes to a cursor, then when I click it shows up. But it's invisible at launch. What am I missing?</p>
  
  <pre><code>public class JavaSwingTextfield extends JFrame {
      private static final long serialVersionUID = 1L;
  
      JTextField myTextField;
  
      public JavaSwingTextfield(){
  
          /***** JFrame setup *****/
  
          // Set the size of the window
          setSize(600,600);
  
          // Make the application close when the X is clicked on the window
          setDefaultCloseOperation(EXIT_ON_CLOSE);
  
          // Makes the JFrame visible to the user
          setVisible(true);
  
          /***** JFrame setup END *****/
  
  
          /***** JButton setup *****/
  
          // Create a JLabel and set its label to "Start"
          myTextField = new JTextField("Start");
  
          // Set the label's size
          myTextField.setSize(100, 50);
  
          // Put the label in a certain spot
          myTextField.setLocation(200, 50);
  
          // Set a font type for the label
          //Font myFont = new Font("Serif", Font.BOLD, 24);
          //myTextField.setFont(myFont);
  
          // Add the label to the JFrame
          add(myTextField);
  
          /***** JButton setup END *****/
  
      }
  
  
      /***** The main method *****/
      public static void main(String[] args){ 
  
          new JavaSwingTextfield();
  
      }
  
  }
  </code></pre>