🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15263

Re: Press Button Automatically

#15263
From: Chris Williams
Date: Tue, 29 Jun 1999 00:00
17 lines
1924 bytes
If you are using the JButton....there is a method called doClick which will
do what you want and cause the event to be fired.
Chris

MJ <ghjkl100@hotmail.com> wrote in article
<7laik7$rg0$1@mailint03.im.hou.compaq.com>...
> 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: <01bec236$e2d90ad0$8168e484@pc3535>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7laik7$rg0$1@mailint03.im.hou.compaq.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fa45f,3deb09cf5370bdb2
X-Google-Attributes: gidfa45f,public
X-Google-Thread: f5d71,3deb09cf5370bdb2
X-Google-Attributes: gidf5d71,public
X-Google-Thread: 113ae9,3deb09cf5370bdb2
X-Google-Attributes: gid113ae9,public
X-Google-Thread: 10a146,3deb09cf5370bdb2
X-Google-Attributes: gid10a146,public
X-Google-Thread: 111d6b,3deb09cf5370bdb2
X-Google-Attributes: gid111d6b,public
X-Google-Thread: fecd1,3deb09cf5370bdb2
X-Google-Attributes: gidfecd1,public
X-Google-Thread: 10bb9b,3deb09cf5370bdb2
X-Google-Attributes: gid10bb9b,public
X-Google-Thread: f74b3,3deb09cf5370bdb2
X-Google-Attributes: gidf74b3,public
From: "Chris Williams" <willich8@mail.northgrum.com>
Subject: Re: Press Button Automatically
Date: 1999/06/29
Message-ID: <01bec236$e2d90ad0$8168e484@pc3535>
X-Deja-AN: 495204983
Sender: news%mother@herald.northgrum.com
X-Nntp-Posting-Host: 132.228.104.129
References: <7laik7$rg0$1@mailint03.im.hou.compaq.com>
Organization: Northrop-Grumman
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