Well, I have a default button assigned to the JFrame's RootPane, so if the
<ENTER> key event ever got to the JFrame I'd be in good shape. My problem is
that the JTextPane is grabbing the event and not passing it up to the
JFrame. I was wondering if there was an easy way to tell the JTextPane to
pass certain events up the containment hierarchy.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Harish
Prabhu
Sent: Monday, April 09, 2001 7:30 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: event bubbling
I guess you can register the Enter Key Stroke with the particular JFrame
that wants to handle the event.
>From: "Josh Howe" <[EMAIL PROTECTED]>
>To: "Java - Swing" <[EMAIL PROTECTED]>
>Subject: event bubbling
>Date: Mon, 9 Apr 2001 13:49:07 -0400
>
>
>Hi all,
>
>Can anybody tell me how to pass a KeyPressed event from a JTextPane up to
>it's parent container. I have a single line JTextPane, and I'd like it to
>ignore <ENTER> key presses and hand them up to the JFrame so that the
>JFrame's default button will be activated. Thanks!
>
>_______________________________________________
>Swing mailing list
>[EMAIL PROTECTED]
>http://eos.dk/mailman/listinfo/swing
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing