Using Intellij IDEA 4.5.3, I can select text in the editor, put my mouse over it, the mouse cursor displays an arrow, I can hold the left mouse button, and drag the text to any native application (such as notepad for Windows). This behaves as if it were a cut/paste operation.
I am trying to simulate this behaviour using my own JTextField (is this an appropriate component? I tried a couple of others) to no avail. I see no functionality offered by javax.swing.TransferHandler, which is where I would have otherwise expected it.
Assuming IDEA is pure Java (as it claims), how can I produce this behaviour using my own components?