Hi,

On Nov 5, 1:45 am, Norman Ho <[EMAIL PROTECTED]> wrote:
> Thanks Miga,
>
> Its good to have some reassurance:)),
> So convertTemp.addActionListener(this);
> is like a shorthand for
>   convertTemp.addActionListener(this.convetTemp);
>
I don't think this is the same as you think.

convertTemp.addActionListener(this);

adds the instance of your CelsiusConverter-Class executing the
statement to the
ActionListener of JButton convertTemp.

So when the Button is pressed you get a callback into the methods of
the Interface
ActionListener you have to implement in CelsiusConverter and than you
know that the
button is pressed.

HTH
Ewald
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to