🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Keyboard-shortcuts to JButtons

#11309
From: Gavster McRavster
Date: Fri, 18 Jun 1999 00:00
11 lines
1403 bytes
yep - you need accelerator jeys - these are available for menu options -
which are extenstions of jbutton so i see no problem in implementing these
if you cn find the right code!
Felix Lipov <felix.lipov@thortech.com> wrote in message
news:376141F0.154F3520@thortech.com...
> 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: <929695612.13111.0.nnrp-09.c1c3e175@news.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <376141F0.154F3520@thortech.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,d88e234f13e2c021
X-Google-Attributes: gid111d45,public
From: "Gavster McRavster" <gavinc@demon.net>
Subject: Re: Keyboard-shortcuts to JButtons
Date: 1999/06/18
Message-ID: <929695612.13111.0.nnrp-09.c1c3e175@news.demon.co.uk>
X-Deja-AN: 490993101
X-NNTP-Posting-Host: gavinc.eng.demon.net:193.195.225.117
References: <376141F0.154F3520@thortech.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 929695612 nnrp-09:13111 NO-IDENT gavinc.eng.demon.net:193.195.225.117
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing