실행해서 버튼누르면 아래 강조해놓은부분 txf.settext(s);  <<이부분이 에러나네여


import java.awt.*;
import java.awt.event.*;
import java.util.Random;

 class FrameEvent extends Frame implements ActionListener{ //FrameEvent 시작
 TextField txf;
 Button bt;
 Panel p1,p2,p3;
 
 public FrameEvent(){  //생성자
  setTitle("로또번호 생성기");
  setBackground(Color.CYAN);
  setSize(300, 100);
  setVisible(true);
  TextField txf = new TextField(" 과연이번주는",20);
  bt = new Button("생성");
  p1 = new Panel();
  p2 = new Panel();
  p3 = new Panel();
  setLayout(new BorderLayout());
  p1.add(new Label("행운의번호!"));
  this.add(BorderLayout.WEST,p1);
  p2.add(txf);
  this.add(BorderLayout.CENTER,p2);
  p3.add(bt);
  this.add(BorderLayout.EAST,p3);
  bt.addActionListener(this);
  
  
  addWindowListener(new WindowAdapter() { //윈도우창 끄기
   public void windowClosing(WindowEvent e){
    dispose();
    System.exit(1);
   }
  }); //윈도우창 끝
 }//FrameEvent 생성자 끝
 
 public void actionPerformed(ActionEvent e){ //actionPerformed메서드
  Random ran=new Random();
  int six[]=new int[6];
  String s;
  int i;
  for (i=0;i<six.length;i++){
  six[i]=ran.nextInt(45);
  s=Integer.toString(six[i]);
  txf.setText(s+"");
   }
  }//actionPerformed메서드 끝
 }//FrameEvent 클래스 끝
 
 public class lotto2 {  //최상위 클래스
 public static void main(String[] args){  //메인메서드
  new FrameEvent();
 }
 }