I am a novice Java programmer. I was trying to edit a Java application, the application basically is a download manager. It has a text field where in we have to paste the URL to download that particular file. Now my problem is that I am trying to add a mouse event so that I can right click and "paste" the URL into the Text Field. I would also like to add "cut" and "copy" options for the right click. But I have tried many things and failed to achieve what I wanted.
It would be of great help if anyone could help me get it this done by giving me an example of the code. I would like to know the simplest way to get a "cut", "copy" & "paste" menu by right clicking on a text field.