disabling paste option for textfield

how to disable only ctrl+v option for a textfield.?

[58 byte] By [richa.csia] at [2007-11-27 11:22:57]
# 1

http://forum.java.sun.com/thread.jspa?threadID=768569

Read that thread. make sure you find reply #7 which has a very effective solution.

CeciNEstPasUnProgrammeura at 2007-7-29 14:57:48 > top of Java-index,Java Essentials,Java Programming...
# 2

Thanx for the link.

However, i'm working on swt components.

I've applied Verfify Keylistener, but i'm not able to stop ctrl+v activity.

richa.csia at 2007-7-29 14:57:48 > top of Java-index,Java Essentials,Java Programming...
# 3

> Thanx for the link.

> However, i'm working on swt components.

Same principle applies I suppose. Note that SWT might be better discussed in an SWT forum, since it's not part of the standard Java libs.

> I've applied Verfify Keylistener, but i'm not able to

> stop ctrl+v activity.

You also won't stop CTRL+INS activity or insertion by mouse context menu... listeners aren't really the best approach.

CeciNEstPasUnProgrammeura at 2007-7-29 14:57:48 > top of Java-index,Java Essentials,Java Programming...
# 4

Thanx a lot!!

will try SWT forums..

cheers

richa.csia at 2007-7-29 14:57:48 > top of Java-index,Java Essentials,Java Programming...