ck();Р this.setTitle("自动存款"); //定义为窗口名称Р this.setSize(320,300); // 定义窗口的大小Р this.setResizable(false);Р this.show(); //显示Р }Р public void actionPerformed (ActionEvent e) //接口监听类Р { Р if(e.getSource()==jb1) //判断是是否是jb1Р {Р double money = Double.parseDouble(jtf1.getText()); if(money<0){Р JOptionPane.showMessageDialog(this,"对不起,存的金额不能为负数!!");Р jtf1.setText("");Р return;Р }Рif(money%100!=0&&money>0){Р JOptionPane.showMessageDialog(this,"对不起,你所存的钱不是整百的!!");Р jtf1.setText("");Р return;Р } РJOptionPane.showMessageDialog(this,"成功取款"+jtf1.getText()+"元!");//一个提示框填出你成功存了多少Р key.cunkuan(money); //把存的钱传回客户类Р jtf1.setText("0"); Р return;Р }Р }?Рpublic void KQActionPerformed ( ActionEvent event ) //匿名类监听过程Р {Р if (event.getSource()==jb2 ) //判断要是jb2Р { Р new KQ(key); //返回KQ界面Р setVisible( false); Р }Р }?Р}