🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Closing JPopupMenu with ESC-Key

#9527
From: Eckard Buchner
Date: Wed, 08 Mar 2000 00:00
11 lines
765 bytes
Hi,
in JDK1.2.2 this does not work although I registered a Keyboard Action

KeyStroke escStroke = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0);
ActionListener escListener = new ActionListener() {...}
registerKeyboardAction(escListener, escStroke,
JComponent.WHEN_IN_FOCUSED_WINDOW);

any ideas?
thank you
Eckard Buchner
Technical Details
Message-ID: <8a56sf$6gm3@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,8b03132bf9195efa,start
X-Google-Attributes: gid111d45,public
From: "Eckard Buchner" <eb@tonbeller.com>
Subject: Closing JPopupMenu with ESC-Key
Date: 2000/03/08
Message-ID: <8a56sf$6gm3@bornews.borland.com>
X-Deja-AN: 594640336
Organization: Ton Beller AG
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Newsgroups: borland.public.jbuilder.java.swing