hi there
well its simple
the code is as below
public class hithere implements ActionListener
{
public hithere()
{
Button b=new Button("Hi there");
b.addActionListener(this);
}
public void actionPerformed(ActionEvent ae)
{
if(ae.getActionCommand().equals("Hi there"))...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.