addActionListener(this)?Originally posted by Gopu Akraju:
b.addActionListener(this);
b2.addActionListener(this);
Originally posted by James Jiang:
you also make class ButtonTest implement java.awt.event.ActionListener to get it working.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Originally posted by James Jiang:
Yes,Rob.It is more reasonable in your way. I learn it.
Technology can never substitute for knowledge.
Technology can never substitute for knowledge.