Himai Minh wrote:Which one should I use then? Action or ActionListener?
Well, you can use whichever you prefer. You just can't use classes of the java.awt package that have corresponding ones in the java.swing package. For instance, you can't use java.awt.Button, since there's javax.swing.JButton. But there's no problem in using java.awt.event.ActionListener.
Either Action or ActionListener are fine.
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD