There’s a small Swing JTextField component in my game tool where you can drop a file so the field takes the file’s full path name.
I’ve implemented it according to the Java tutorial and it works fine.
However, now Copy/Paste/Cut don’t work anymore on that field. The tutorial
http://java.sun.com/docs/books/tutorial/uiswing/misc/dnd.html#cut
explains that you’ve to re-implement this functionality because your own transfer handler has overwritten it. But how do you do this?
I don’t get the point in how to use the example’s menuItem to make it work with my textfield.
Basically, around my line of code
mMyTextfield.setTransferHandler(new MyownTransferhandler();
… I’ve to enable the Copy/Paste/Cut Action commands. But I’m not sure how.