title: What should I do when it says "Syntax error, insert "}" to complete ClassBody"
body: <p>I'm having trouble with the error "Syntax error, insert "}" to complete ClassBody"
  and i don't know what to do.
  This is my code:</p>
  
  <pre><code>import java.awt.EventQueue;
  import javax.swing.JFrame;
  import javax.swing.JOptionPane;
  import javax.swing.JTextField;
  import java.awt.event.ActionListener;
  import java.awt.event.ActionEvent;
  import javax.swing.JButton;
  
  public class Password {
  
  private JFrame frame;
  private JTextField PassField;
  private JTextField txtSecretPasswords;
  
  /**
   * Launch the application.
   */
  public static void main(String[] args) {
      EventQueue.invokeLater(new Runnable() {
          public void run() {
              try {
                  Password window = new Password();
                  window.frame.setVisible(true);
              } catch (Exception e) {
                  e.printStackTrace();
              }
          }
      });
  }
  
  /**
   * Create the application.
   */
  public Password() {
      initialize();
  }/* Here*/
  
  /**
   * Initialize the contents of the frame.
   */
  private void initialize() {
      frame = new JFrame();
      frame.setBounds(100, 100, 700, 650);
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      frame.getContentPane().setLayout(null);
  
      PassField = new JTextField();
      PassField.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent arg0) {
  
  
          }
      });
      PassField.setBounds(0, 42, 150, 32);
      frame.getContentPane().add(PassField);
      PassField.setColumns(10);
  
      txtSecretPasswords = new JTextField();
      txtSecretPasswords.setEditable(false);
      txtSecretPasswords.setText("Secret passwords");
      txtSecretPasswords.setBounds(0, 11, 131, 20);
      frame.getContentPane().add(txtSecretPasswords);
      txtSecretPasswords.setColumns(10);
  
      JButton btnEnter = new JButton("Enter");
      btnEnter.addActionListener(new ActionListener() {
          private JTextField txtMessage;
          private JTextField txtMessage2;
          private JTextField txtMessage3;
          private JTextField txtPass2;
          private JButton btnEnter2;
          public void actionPerformed(ActionEvent e) {
              int pass;
              pass = Integer.parseInt(PassField.getText());
              if (pass == 3333) {
  
                  txtMessage = new JTextField();
                  txtMessage.setEditable(false);
                  txtMessage.setText("Postal Code: 3333");
                  txtMessage.setBounds(0, 100, 130, 20);
                  frame.getContentPane().add(txtMessage);
                  txtMessage.setColumns(10);
  
                  txtMessage2 = new JTextField();
                  txtMessage2.setEditable(false);
                  txtMessage2 .setText("Email password: 3333");   
                  txtMessage2.setBounds(0, 125, 150, 20);
                  frame.getContentPane().add(txtMessage2);
                  txtMessage2.setColumns(10);
  
                  txtMessage3 = new JTextField();
                  txtMessage3.setEditable(false);
                  txtMessage3.setText("Steam password: 3333");    
                  txtMessage3.setBounds(0, 170, 200, 20);
                  frame.getContentPane().add(txtMessage3);
                  txtMessage3.setColumns(10);
  
                  btnEnter2 = new JButton();
                  btnEnter2.setText("Enter");
                  btnEnter2.setBounds(175, 250, 100, 15);
                  frame.getContentPane().add(btnEnter2);
  
                  btnEnter2.addActionListener(new ActionListener() {
                      public void actionPreformed(ActionEvent e) {
  
  
                          int pass2;
                          pass2 = Integer.parseInt(txtPass2.getText());
                          if (pass2 == 030303) {
                              txtMessage3 = new JTextField();
                              txtMessage3.setEditable(false);
                              txtMessage3.setText("Steam password: 3333");    
                              txtMessage3.setBounds(0, 170, 200, 20);
                              frame.getContentPane().add(txtMessage3);
                              txtMessage3.setColumns(10); 
  
  
                      }
                          else {
                              JOptionPane.showMessageDialog(null, "Wrong");
                          }
                      }/* And here*/);
  
                  txtPass2 = new JTextField();
                  txtPass2.setEditable(true);
                  txtPass2.setBounds(0, 250, 150, 20);
                  frame.getContentPane().add(txtPass2);
                  txtPass2.setColumns(10);
  
              }
              else {
                  JOptionPane.showMessageDialog(null, "Wrong");
              }
  
  
          }
      });
      btnEnter.setBounds(160, 47, 99, 23);
      frame.getContentPane().add(btnEnter);
  
  }
  </code></pre>
  
  <p>I know its a long one. I've tried to look through the code but I'm not that experienced with Java or coding.
   I don't know why the errors there or what to do so if you could help it would be appreciated a lot by a beginner! </p>