🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Keyboard-shortcuts to JButtons

#11335
From: Felix Lipov
Date: Fri, 11 Jun 1999 00:00
6 lines
942 bytes
I'm using a JToolbar with several JButtons, running WinNT. I want to be
able to use keyboard shortcuts to access them (e.g. CTRL-Q). I tried
setMnemonic('q'), but that requires an ALT-Q, but I want CTRL-Q. I tried
adding a KeyListener, but it only works when the JToolbar has focus and
that's not accepable because you need to be able to use the
keyboard-shortcuts at any point in the app. Any ideas?
Technical Details
Message-ID: <376141F0.154F3520@thortech.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,d88e234f13e2c021,start
X-Google-Attributes: gid111d45,public
From: Felix Lipov <felix.lipov@thortech.com>
Subject: Keyboard-shortcuts to JButtons
Date: 1999/06/11
Message-ID: <376141F0.154F3520@thortech.com>
X-Deja-AN: 488477730
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Reply-To: felix.lipov@thortech.com
Newsgroups: borland.public.jbuilder.java.swing