How to create a Right Click Menu for a Text Field in Java?
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.
Re: How to create a Right Click Menu for a Text Field in Java?
Most people are too busy to sit down and write working code samples for every person. See what you can come up with and post questions if you get stuck.
Are you using JText--things or creating your own boxes for input?