Java程序加了事件监听器,但是按钮无响应

import java.awt.BorderLayout;import java.awt.event.;import javax.swing.;import java.util.Scanner;public class Season{public static void main(String[] args){ JFrame f1=new JFrame("Season"); JPanel p=new JPanel(); JTextField monthField1=new JTextField("请输入月份"); JTextField seasonField=new JTextField(20); JButton b=new JButton("确定"); f1.setSize(600,600); f1.setLocation(600,300); f1.setVisible(true); p.add(monthField1); p.add(seasonField); p.add(b); f1.add(p); p.setLayout(new BorderLayout()); p.add(new JTextField("请输入月份"),BorderLayout.NORTH); p.add(new JTextField(20),BorderLayout.CENTER); p.add(new JButton("确定"),BorderLayout.SOUTH); class seasonField implements ActionListener{ public void actionPerformed(ActionEvent e){ int x; Scanner s=new Scanner(System.in); x=s.nextInt(); class b implements ActionListener{ public void actionPerformed(ActionEvent e){ if(x==1||x==2||x==3){ JFrame f2=new JFrame("Spring"); JPanel p2=new JPanel(); JLabel SpringLabel=new JLabel(new ImageIcon("C:\Users\dell\Pictures\Saved Pictures\1.png")); JLabel textLabel2=new JLabel("春天",JLabel.CENTER); f2.setSize(600,600); f2.setLocation(600,300); f2.setVisible(true); p2.add(textLabel2); p2.add(SpringLabel); } } } else if(x==4||x==5||x==6){ class b implements ActionListener{ public void actionPerformed(ActionEvent e){ JFrame f3=new JFrame("Summer"); f3.setSize(600,600); f3.setLocation(600,300); f3.setVisible(true); JPanel p3=new JPanel(); JLabel SummerLabel=new JLabel(new ImageIcon("C:\Users\dell\Pictures\Saved Pictures\夏.png")); JLabel textLabel3=new JLabel("夏天",JLabel.CENTER); p3.add(textLabel3); p3.add(SummerLabel); } } } else if(x==7||x==8||x==9){ class b implements ActionListener{ public void actionPerformed(ActionEvent e){ JFrame f4=new JFrame("Autumn"); f4.setSize(600,600); f4.setLocation(600,300); f4.setVisible(true); JPanel p4=new JPanel(); JLabel AutumnLabel=new JLabel(new ImageIcon("C:\Users\dell\Pictures\Saved Pictures\秋.png")); JLabel textLabel4=new JLabel("秋天",JLabel.CENTER); p4.add(textLabel4); p4.add(AutumnLabel); } } } else if(x==10||x==11||x==12){ class b implements ActionListener{ public void actionPerformed(ActionEvent e){ JFrame f5=new JFrame("Winter"); f5.setSize(600,600); f5.setLocation(600,300); f5.setVisible(true); JPanel p5=new JPanel(); JLabel WinterLabel=new JLabel(new ImageIcon("C:\Users\dell\Pictures\Saved Pictures\冬.png")); JLabel textLabel5=new JLabel("冬天",JLabel.CENTER); p5.add(textLabel5); p5.add(WinterLabel); } } } else{ class b implements ActionListener{ public void actionPerformed(ActionEvent e){ JFrame f6=new JFrame("Flase"); f6.setSize(600,600); f6.setLocation(600,300); f6.setVisible(true); JPanel p6=new JPanel(); JButton b2=new JButton("返回"); JLabel FlaseLabel=new JLabel(new ImageIcon("C:\Users\dell\Pictures\Saved Pictures\返回.png")); JLabel textLabel6=new JLabel("出错了,请返回",JLabel.CENTER); p6.add(textLabel6); p6.add(FlaseLabel); p6.add(b2); p6.setLayout(new BorderLayout()); p6.add(new JButton("返回"),BorderLayout.SOUTH); }