title: Why are my items not showing up in JFrame?
body: <p>I'm fairly new to JFrame and I want to know why my items are not showing up on the window. I know i dont have a ActionHandler but I just want my textfield's to show up on my window. Here's my code:</p>
  
  <pre><code>import java.awt.Font;
  import javax.swing.JFrame;
  import javax.swing.JLabel;
  import javax.swing.JPasswordField;
  import javax.swing.JTextField;
  
  public class FirstGUI extends JFrame{
      public void GUI(){
         setTitle("Welcome");
         setResizable(false);
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         setVisible(true);
         setSize(600,600);
  
         JLabel title = new JLabel();
         title.setText("Apple Inc. Member Login Port");
         title.setFont(new Font("Arial", Font.PLAIN, 24));
  
         JTextField login = new JTextField("Login",10);
  
         JPasswordField pass = new JPasswordField("Password");
  
         add(title);
         add(login);
         add(pass);
  
     }
  
      public static void main(String[] args){
          FirstGUI a = new FirstGUI();
          a.GUI();
      }
  }
  </code></pre>
  
  <p>but when i run it i get this:</p>
  
  <p><img src="https://i.stack.imgur.com/GWgai.png" alt="enter image description here"></p>