Copy paste functionality in AWT Canvas
Hi,
We have created java applet using AWT Canvas. Only text has been displayed in this canvas. Now we want to give copy paste functionality in this applet.
Please guide us how we can achieve this functionality.
Please reply ASAP as it is very much required functionality.
Thanks,
Ayaz Shaikh
Re: Copy paste functionality in AWT Canvas
Re: Copy paste functionality in AWT Canvas
How would the "copy/paste" functionality work? Please explain in some detail.
Re: Copy paste functionality in AWT Canvas
Hi Norm,
1. User will be allowed to select the text from the canvas (i.e. Applet) and then click "Copy" option then click "Paste" to paste the selected text to the canvas (i.e. Applet).
2. User will be allowed to select the text from the canvas (i.e. Applet) and then click "Copy" option then paste to the application other than Applet.
3. User can copy the text from application other than Applet and then paste it to the applet I have created.
Please let me know if you still require more details.
Thanks,
Ayaz Shaikh
Re: Copy paste functionality in AWT Canvas
Re: Copy paste functionality in AWT Canvas
I haven't tried any option as I don't know how to resolve this issue. Even I don't have any hint to solve this issue. It would be great if you help me on this problem.
Re: Copy paste functionality in AWT Canvas
What happens with your current applet code when you try to select text in it and copy it to the clipboard?
Re: Copy paste functionality in AWT Canvas
Canvas does not have feature to select the text and copy/paste it. I want to know how can I achieve this functionality in canvas.
Re: Copy paste functionality in AWT Canvas
Can you post some code that shows what you are trying to do?
One part of the project will be to allow a user to "select" something shown in an applet.
Post some code that shows what you would want to be select-able.