title: Type a String using java.awt.Robot
body: <p>I already know how to use <code>java.awt.Robot</code> to type a single character using <code>keyPress</code>, as seen below. How can I simply enter a <strong>whole</strong> pre-defined <code>String</code> value <strong>at once</strong> into a textbox?   </p>
  
  <pre><code>robot.keyPress(KeyEvent.VK_1);
  robot.keyPress(KeyEvent.VK_1);
  robot.keyPress(KeyEvent.VK_1);  
  // instead, enter String x = "111"
  </code></pre>