standalone java application

I have one question. I have a standalone java application and thatapplication contain one TextArea. I want to add three buttons inthat application "Select All", "Copy" "Paste". So, when user clickon Select All then everything in that text area should get selectedand same thing with Copy and Paste. Can anyone please send me aexample of how to do that. I would really appriciated your help.Thanks you very much for your help.