🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Can't activate JButtons within an applet using the keyboard

#9786
From: Jeff Marendo
Date: Thu, 27 Jan 2000 00:00
16 lines
1292 bytes
Hello,

I'm trying to figure out why the JButtons I'm using in my applet won't
execute their associated actionListener functionality when I hit either
'Enter' key on my keyboard.  That is, all of the code in an actionPerformed
event associated with a button's ActionListener will only be executed if I
click on that button with the mouse.  I can tab to all of my button
components and see the tab moving, but when I stop on one and hit either
enter key on my keyboard, the button does not depress and nothing happens.
Big bummer.

Does anyone have an idea why this is happening?  Up until now, I've seen the
functionality that I desire happen automatically with JButtons, so I'm
stumped.  Thanks in advance.

Jeff
Technical Details
Message-ID: <86q9cg$ria10@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,9877ed777dc9eea8,start
X-Google-Attributes: gid111d45,public
From: "Jeff Marendo" <marendoj@commos.com>
Subject: Can't activate JButtons within an applet using the keyboard
Date: 2000/01/27
Message-ID: <86q9cg$ria10@bornews.borland.com>
X-Deja-AN: 578452802
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Organization: CommTech Corporation
X-MSMail-Priority: Normal
Reply-To: "Jeff Marendo" <marendoj@commos.com>
Newsgroups: borland.public.jbuilder.java.swing