title: How to copy a text from java code in cygwin?
body: <p>I need to get the value of selected item and to copy it from Java application in cygwin.</p>
  
  <p>My problem is that I don't know how to copy a text from Java application in cygwin.</p>
  
  <p>This is a portion of my code:</p>
  
  <pre><code>private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {
      String cmmd = "moshell"+jComboBox1.getSelectedItem()
      /*I need a help here :how to write this text (cmmd) in cygwin?*/ 
  }
  </code></pre>
  
  <p>I'm debutant in programming.  Can someone help me to resolve this problem. Thank you.</p>