title: Java Swing, textarea as input/output?
body: <p>I want to load up a window using the java swing, something like <a href="http://www.java2s.com/Code/Java/Swing-JFC/ShowlinestartendoffsetsinaJTextArea.htm" rel="nofollow noreferrer">this</a></p>
  
  <p>However I want to be able to use it for text input also not just to dump data into it..</p>
  
  <p>any idea how to do it?</p>