Article View: borland.public.jbuilder.java.swing
Article #384Re: Default Keymap in JTextComponent
From: Paul Furbacher [TeamB]
Date: Tue, 11 Oct 2005 14:09
Date: Tue, 11 Oct 2005 14:09
38 lines
2255 bytes
2255 bytes
Vander wrote:
> JTextComponents react to certain keystrokes in a default way, e.g.
> "CTRL-C", "CTRL-V", "CTRL-X".
>
> I want to obtain the keymap containing the corresponding actions, so I use
> Keymap keymap = JTextComponent.getKeymap(
> JTextComponent.DEFAULT_KEYMAP );
>
> but keymap is returned empty!
>
> Does anybody know where those keystrokes are dealt with and if it is
> possible to obtain associated actions, so I won't have to define them
> again? Thanks!
Google Web
+jtextcomponent +keymap +change +default
Scroll to the bottom where you should find a few
additional links pulled from groups; one of them
(in my search) is titled, "Unbinding default cut/copy/...."
I think that and other links will get you started.
--
Paul Furbacher (TeamB)
Save time, search the archives:
http://info.borland.com/newsgroups/ngsearch.html
Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you.
Technical Details
Message-ID:
<434bc6ea@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news.netcologne.de!newsfeed-fusi.netcologne.de!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<434b88bb@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,fe60d82e798fe95a X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 11 Oct 2005 10:09:08 -0400 From: "Paul Furbacher [TeamB]" <pfurbacher@mac.com> Organization: Reverse Alchemy, Inc. User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: Default Keymap in JTextComponent References: <434b88bb@newsgroups.borland.com> In-Reply-To: <434b88bb@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.142.194.228 Message-ID: <434bc6ea@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1129039594 69.142.194.228 (11 Oct 2005 07:06:34 -0700) Lines: 38 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news.netcologne.de!newsfeed-fusi.netcologne.de!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail