Thread View: borland.public.jbuilder.java.swing
3 messages
3 total messages
Started by Vander
Tue, 11 Oct 2005 09:44
Default Keymap in JTextComponent
Author: Vander
Date: Tue, 11 Oct 2005 09:44
Date: Tue, 11 Oct 2005 09:44
14 lines
1478 bytes
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
Re: Default Keymap in JTextComponent
Author: 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.
Re: Default Keymap in JTextComponent
Author: Vander
Date: Wed, 12 Oct 2005 09:21
Date: Wed, 12 Oct 2005 09:21
11 lines
1385 bytes
1385 bytes
Paul Furbacher [TeamB] wrote: > 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. > > Very interesting! ;) Thanks! - V.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads