The editor kit already provided default Actions for cut, copy, paste that you can use. Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html]Text Component Features[/url] for a working example that shows you how to build an menu using these Actions.