title: Cannot bind: field is static: form.MainForm.nameTextField
body: <p>I'm getting an error when I create static methods and call them in another class:</p>
  
  <pre><code>public static JTextField getNameTxtField(){
      return nameTxtField;
  }
  public static JTextField getNewUserNameTxtField(){
      return newUserNameTxtField;
  }
  public static JPasswordField getNewPasswordTextField(){
      return newPasswordTxtField;
  }
  </code></pre>
  
  <p>All the above getters are located in the <code>MainForm</code> class and are called in the this class:</p>
  
  <p><code>GameLogic</code>:</p>
  
  <pre><code>public void addToDatabase() throws SQLException {
      controller.addUserToDatabase(MainForm.getNameTxtField().getText(),MainForm.getNewUserNameTxtField().getText(), String.valueOf(MainForm.getNewPasswordTextField()) , "insert into application_user values(?, ?, ?)");
  }
  </code></pre>
  
  <p>Why am I getting the message? I don't really understand the message so can someone explain to me?</p>
  
  <p>I can't create an object like this: <code>MainForm form = new MainForm();</code> in the class <code>GameLogic</code> because I will get a <code>StackOverflowError</code>.</p>
  
  <p>Does the problem occur because I call the static getters in a non-static method?</p>