title: how do i limit the length of the input i want inside a Jtextfield?
body: <pre><code>    username = new JTextField("");
      username.setBounds(330, 550, 230, 30);
      username.addActionListener(this);
      username.requestFocus(); // sets focus on JTextField
      this.add(username);
  </code></pre>