Article View: borland.public.jbuilder.java.language
Article #138Re: Confused btwn actionPerformed and actionAdapter
From: Kevin Dean [TeamB]
Date: Wed, 02 Jan 2008 20:00
Date: Wed, 02 Jan 2008 20:00
19 lines
1900 bytes
1900 bytes
Daniel wrote: >Could anyone please explain to me how it works and why does the >action_Performed method appear two times, once by itself as a method and >then another time under a class unknown to me called actionAdapter? In order for the button to have any effect, you have to register an ActionListener object with the button. The JBuilder code is generating an ActionListener, which it then registers with the button (look in the jbInit() method for that code), and then provides a callout from the ActionListener back to your Frame class to do the real work. -- Kevin Dean [TeamB] Dolphin Data Development Ltd. http://www.datadevelopment.com/ Please see Borland's newsgroup guidelines at http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<xn0fkpq16bx82sm000-kdean@www.teamb.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<477bab15$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,92daee7594067bd5
X-Google-Attributes: gidf74b3,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Kevin Dean [TeamB]" <NkOdSePaAnM@datadevelopment.com>
Subject: Re: Confused btwn actionPerformed and actionAdapter
Newsgroups: borland.public.jbuilder.java.language
References: <477bab15$1@newsgroups.borland.com>
Organization: Dolphin Data Development Ltd.
User-Agent: XanaNews/1.18.1.6
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobrp]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
Message-ID: <xn0fkpq16bx82sm000-kdean@www.teamb.com>
X-Ref: newsgroups.borland.com ~XNS:00000999
MIME-Version: 1.0
Content-Type: text/plain; format=flowed
NNTP-Posting-Host: 99.228.195.192
Date: 2 Jan 2008 13:00:18 -0700
X-Trace: newsgroups.borland.com 1199307618 99.228.195.192 (2 Jan 2008 13:00:18 -0700)
Lines: 19
X-Authenticated-User: kdean
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail