🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to set default ENTER and ESCAPE actions?

#11984
From: Matt Krevs
Date: Thu, 04 Mar 1999 00:00
16 lines
1103 bytes
Escape key functionality is discussed in the following article

http://www.javaworld.com/javaworld/javatips/jw-javatip69.html

Carlos Javier Castro Pena wrote in message
<36DB4561.F2B1F55C@ittc.ukans.edu>...
>How can I set in an JInternalFrame the following:
>
>-when the user presses ENTER, an enterButton.doClick() is executed
>-when the user presses ESCAPE, an escapeButton.doClick() is executed
>
>
>Is there some example? I set the keyPressed() event for each element,
>but it work only when the element has focus. I'd like to implement it in
>a moregeneral way.
>
Technical Details
Message-ID: <7bkcqm$2i612@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36DB4561.F2B1F55C@ittc.ukans.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,3b20cc5014a3aa77
X-Google-Attributes: gid111d45,public
From: "Matt Krevs" <mattkrevs@flex.com.au>
Subject: Re: How to set default ENTER and ESCAPE actions?
Date: 1999/03/04
Message-ID: <7bkcqm$2i612@forums.borland.com>
X-Deja-AN: 450931616
References: <36DB4561.F2B1F55C@ittc.ukans.edu>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing