🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #7918

Re: how to disable Copy & Paste??

#7918
From: Thomas Aichernig
Date: Tue, 28 Nov 2000 00:00
18 lines
1286 bytes
Hi 2 all,

thanx for your help. meanwhile I found a very simple solution: just overwrite
the function paste() and thats it - it is always more simple than it seems...
Thomas

Tor Iver Wilhelmsen wrote:

> Thomas Aichernig <Thomas.Aichernig@aon.at> writes:
>
> > I would like to disable pasting for a component derived from JTextField.
> > If this is not possible, it would also be ok to disable it for the whole
> > application.
>
> Try calling unregisterKeyboardAction(KeyStroke.getKeyStroke(...
>
> But use VK_C, VK_X and VK_V instead of those you tried: VK_PASTE
> etc. refer to certain platform's distinct keys.
Technical Details
Message-ID: <3A239703.844A5576@aon.at>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3A1A7210.6F328C6@aon.at> <MPG.148503b55624b1d0989d56@forums.borland.com> <3A1BB71E.F290E9CE@aon.at> <uem04hvq4.fsf@sds.no>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,4d003462c0cbd857
X-Google-Attributes: gid111d45,public
From: Thomas Aichernig <Thomas.Aichernig@aon.at>
Subject: Re: how to disable Copy & Paste??
Date: 2000/11/28
Message-ID: <3A239703.844A5576@aon.at>
X-Deja-AN: 698630688
Content-Transfer-Encoding: 7bit
References: <3A1A7210.6F328C6@aon.at> <MPG.148503b55624b1d0989d56@forums.borland.com> <3A1BB71E.F290E9CE@aon.at> <uem04hvq4.fsf@sds.no>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Trace: 28 Nov 2000 03:28:06 -0800, 62.47.27.229
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing