Article View: borland.public.jbuilder.java.swing
Article #9787Re: Can't activate JButtons within an applet using the keyboard
From: rwilkman
Date: Thu, 27 Jan 2000 00:00
Date: Thu, 27 Jan 2000 00:00
40 lines
1932 bytes
1932 bytes
Jeff: Are you trying to say that you switched back to Windows L&F and you still don't get the behaviour? I had suggested you post over here a "how do I get Metal L&F to behave like Windows L&F" after we went through this in the applet group. -Rich Jeff Marendo wrote: > > 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 -- ===== Rich Wilkman Senior Quality Assurance Engineer JBuilder Team If something in this post looks like an opinion, walks like an opinion and quacks like an opinion, it's mine and not that of my employer. If you are reading this from a newsgroup post, don't send mail. =====
Technical Details
Message-ID:
<3890C669.21F72562@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<86q9cg$ria10@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,9877ed777dc9eea8 X-Google-Attributes: gid111d45,public From: rwilkman <rwilkman@inprise.com> Subject: Re: Can't activate JButtons within an applet using the keyboard Date: 2000/01/27 Message-ID: <3890C669.21F72562@inprise.com> X-Deja-AN: 578504280 Content-Transfer-Encoding: 7bit References: <86q9cg$ria10@bornews.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing