Article View: borland.public.jbuilder.java.language
Article #15262Press Button Automatically
From: MJ
Date: Tue, 29 Jun 1999 00:00
Date: Tue, 29 Jun 1999 00:00
6 lines
1819 bytes
1819 bytes
Does anyone know how I can "press" a button in my code...I have a button that does certain events when it's pressed, but I want these events to occur when my user presses enter as well...I know I can call actionPerformed on the ActionListener that's attached to my button, but I'm not sure how to construct the actionEvent...I figure it'd be easier to just press the button automatically...hope i made sense.
Technical Details
Message-ID:
<7laik7$rg0$1@mailint03.im.hou.compaq.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d6b,3deb09cf5370bdb2,start X-Google-Attributes: gid111d6b,public X-Google-Thread: fecd1,3deb09cf5370bdb2,start X-Google-Attributes: gidfecd1,public X-Google-Thread: 113ae9,3deb09cf5370bdb2,start X-Google-Attributes: gid113ae9,public X-Google-Thread: f5d71,3deb09cf5370bdb2,start X-Google-Attributes: gidf5d71,public X-Google-Thread: fa45f,3deb09cf5370bdb2,start X-Google-Attributes: gidfa45f,public X-Google-Thread: f74b3,3deb09cf5370bdb2,start X-Google-Attributes: gidf74b3,public X-Google-Thread: 10a146,3deb09cf5370bdb2,start X-Google-Attributes: gid10a146,public X-Google-Thread: 10bb9b,3deb09cf5370bdb2,start X-Google-Attributes: gid10bb9b,public From: "MJ" <ghjkl100@hotmail.com> Subject: Press Button Automatically Date: 1999/06/29 Message-ID: <7laik7$rg0$1@mailint03.im.hou.compaq.com> X-Deja-AN: 495188042 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 X-Complaints-To: usenet@mailint03.im.hou.compaq.com X-Trace: mailint03.im.hou.compaq.com 930663879 28160 172.18.100.18 (29 Jun 1999 13:44:39 GMT) Organization: Compaq Computer Corp. NNTP-Posting-Date: 29 Jun 1999 13:44:39 GMT Newsgroups: borland.public.jbuilder.java.language,comp.lang.java,comp.lang.java.api,comp.lang.java.help,comp.lang.java.machine,comp.lang.java.misc,comp.lang.java.programmer,microsoft.public.inetexplorer.ie4.java_applets