title: handling String input at runtime in java
body: <p>I am trying to write a code that takes multiple <code>Uniprot IDs</code> for proteins from user and performs further actions on those IDs. </p>
  
  <p>As the <code>Uniprot ID</code> consists of 6 letters, I want to implement it so that when the user enter 6 letters, the cursor automatically moves to the next line.</p>
  
  <p>I am using <code>jTextArea</code> for taking input.</p>
  
  <p>Any help would be highly appreciated.</p>