🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JTextPane KeyEvent

#632
From: Aven
Date: Wed, 30 Mar 2005 10:28
13 lines
1341 bytes
Hi,
I add a keylistener to JTextPane to process special keypressed events, i.e., 
set the caret position
to the end of the document.
However, this *hides* the default actions, e.g., when I typed CTRL-C, the 
key event was
consumed by my keylistener, it never copied the selected content.
How can I do that?
BTW, how can I associate copy, paste etc to menu items?

Thank you!

Aven 
Technical Details
Message-ID: <424a7eeb$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,128b4a821bddbb34,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Aven" <aven_02@yahoo.com>
Newsgroups: borland.public.jbuilder.java.swing
Subject: JTextPane KeyEvent
Date: Wed, 30 Mar 2005 02:28:17 -0800
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 128.111.68.241
Message-ID: <424a7eeb$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1112178411 128.111.68.241 (30 Mar 2005 02:26:51 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail