public class Pizza extends JPanel{ public static String menu[] = { "핫치킨피자", "불고기피자", "치즈피자", "고구마피자", "포테이토피자" }; //피자 메뉴 선언 public static int price[] = { 27900, 26900, 25900, 29900, 24900}; //각각의 가격 선언 public static JButton bt[] = new JButton[menu.length]; //JButton 선언 public static TextField suja[] = new TextField[menu.length]; //수량을 나타내기위한 텍스트필드 선언 public static Button minus[] = new Button[menu.length]; //수량을 -할때 필요한 마이너스버튼 선언 public static Button plus[] = new Button[menu.length]; //수량을 +할때 필요한 플러스버튼 선언 public static JButton ok[] = new JButton[menu.length]; //수량을 정한 후 장바구니에 담기위한 확인버튼 선언 public static Label name[] = new Label[menu.length]; //이름라벨 선언 public static Label l[] = new Label[menu.length]; //가격라벨 선언 public static ImageIcon icon[] = new ImageIcon[menu.length]; //이미지를 넣기위한 이미지아이콘 선언 // 메뉴 중 피자를 구성하는 메소드 public Pizza(){ ........ }



public class SouthButton extends JPanel {     public SouthButton() {                  setLayout(new FlowLayout()); setBackground(new Color(255, 248, 220)); Button bt1 = new Button("주문"); Button bt2 = new Button("초기화"); Button bt3 = new Button("닫기"); add(bt1); add(bt2); add(bt3); // 주문버튼 bt1.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { JOptionPane.showMessageDialog(null, ta.getText() + " 주문되었습니다. \n이용해주셔서 감사합니다."); for (int i = 0; i < menu.length; i++) { bt[i].setEnabled(true); minus[i].setEnabled(false); plus[i].setEnabled(false); suja[i].setText("0"); ta.setText(" 상품명 단가 수량 합계\n\n"); } } });     } }



아래에 SouthButton클래스에서 bt1누르면 이벤트발생하게 만들려고 Pizza에있는 필드 사용할려고하는데 오류가뜨네용 ㅠㅠ

어떤게문제인가용?ㅠㅠㅠ