import java.awt.*;
import java.awt.event.*;public class wth 
{public static void main(String args[])
{
Frame a=new Frame("afdasf");
    a.setSize(400,300);
    a.show();
    a.setLayout(null);
    Button f1= new Button("dsaf");
f1.setBounds(70,70,70,25);
f1.addActionListener(new ActionListener()
{
  public abstract void actionPerformed(ActionEvent e)/*should be declared abstract; it does not define actionPerformed(java.awt.event.ActionEvent) in public abstract void actionPerformed(ActionEvent e)
*/
    public abstract void actionPerformed(ActionEvent e)
{
if (e.getSource()=f1)
{
f2.setText("fasa");
}
}


});

a.add(f1);
TextField f2=new TextField(100);
f2.setBounds(50,50,50,50);

 
a.add(f2);

a.addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{System.exit(0);}

});

  }
  }