Article View: borland.public.jbuilder.java.swing
Article #12697When is getActionCommand used ?
From: Michael Nguyen
Date: Mon, 30 Nov 1998 00:00
Date: Mon, 30 Nov 1998 00:00
14 lines
907 bytes
907 bytes
The swing components have actionCommand that can be retrieved via
getActionCommand as
in the example below. When jButton is clicked, its event handler
'actionPerformed'
is called and I already know that jButton1 is clicked. So when is
getActionCommand
needed ? Thanks for the info.
Michael,
void jButton1_actionPerformed (ActionEvent e)
{
System.out.println (e.getActionCommand ());
}
Technical Details
Message-ID:
<3662EE39.91524673@home.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: 111d45,c56198fc8ddd4631,start X-Google-Attributes: gid111d45,public From: Michael Nguyen <michaelmn@home.com> Subject: When is getActionCommand used ? Date: 1998/11/30 Message-ID: <3662EE39.91524673@home.com> X-Deja-AN: 417187066 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing