🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Default Keymap in JTextComponent

#383
From: Vander
Date: Tue, 11 Oct 2005 09:44
14 lines
1478 bytes
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!

- Vander
Technical Details
Message-ID: <434b88bb@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!news.usenetserver.com!atl-c07.usenetserver.com!news.usenetserver.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,fe60d82e798fe95a,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 11 Oct 2005 11:44:40 +0200
From: Vander <874505@gmx.de>
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Default Keymap in JTextComponent
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 84.152.223.75
Message-ID: <434b88bb@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1129023675 84.152.223.75 (11 Oct 2005 02:41:15 -0700)
Lines: 14
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!news.usenetserver.com!atl-c07.usenetserver.com!news.usenetserver.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail