Friday 20 March 2009
Java: ActionListener
Posted on 03:31 by Unknown
In order to get the method of the ActionListener[implements], you need to add library:import java.awt.event.*;import java.awt.*;then in a class:class test extends JFrame implements ActionListener{ public test(){ //default constructor}public void actionPerformed(ActionEvent a){// you will need this so that it will get the method implemented// on Actionlistener, without this it will not
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment