Disabling copy button on right click menu

Can any one help me how to disable copy button on right click menu in the textbox
[88 byte] By [VISU_JAVA_FORUMSa] at [2007-11-26 14:57:27]
# 1
> Can any one help me how to disable copy button on> right click menu in the textbox'Copy' in the context menu is not a button.What kind of application is it that you are working on?
aniseeda at 2007-7-8 8:46:09 > top of Java-index,Java Essentials,Java Programming...
# 2
What textbox? There shouldn't be a menu there if you haven't added one.
kajbja at 2007-7-8 8:46:09 > top of Java-index,Java Essentials,Java Programming...
# 3
Dont know if I get what you want for help but try the metod setEnabled(false); on your JMenuItem.Also explain more if it aint right.
Dingo_no_1a at 2007-7-8 8:46:09 > top of Java-index,Java Essentials,Java Programming...
# 4
Thanks for ur response.i wrote a one textbox in html and type a message in textbox then select a message and right click on it, it shows copy,cut, paste select all and unod. my problem is disabling copy in that menu.
VISU_JAVA_FORUMSa at 2007-7-8 8:46:09 > top of Java-index,Java Essentials,Java Programming...
# 5

> i wrote a one textbox in html and type a message in

> textbox then select a message and right click on it,

> it shows copy,cut, paste select all and unod. my

> problem is disabling copy in that menu.

This has nothing to do with Java. It's a JavaScript task and it would be proper to post the question on some JavaScript forum.

As far as I remember, there is no way of disabling only the 'copy' part of the context menu. If you want to disable the complete context menu, that can be done.

aniseeda at 2007-7-8 8:46:09 > top of Java-index,Java Essentials,Java Programming...
# 6
Please note that if you're hoping to prevent users from copying something, it's impossible. Keyboard shortcuts, the browser edit menu and other methods will circumvent context-menu restrictions. It merely annoys users and looks unprofessional.
Mr_Evila at 2007-7-8 8:46:09 > top of Java-index,Java Essentials,Java Programming...