Рpublic Cunkuan(JFrame m,String s){Р super(m,s);Р?setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE);Р?setBounds(400,250,400,200);Р?setVisible(true);Р?setResizable(false); Р?setLayout(null); Р?JLabel label1=new JLabel("请输入存款的金额");Р?label1.setFont(new Font("Serif",Font.BOLD,20));Р?JLabel label2=new JLabel("金额:");Р?label2.setFont(new Font("Serif",Font.BOLD,13));Р?Р?JButton button1=new JButton("确认");Р?BHandler h=new BHandler();Р?button1.addActionListener(h);Р?Р?JPanel p1=new JPanel(); Р?JPanel p2=new JPanel(); Р?p1.setBounds(0,0,200,70); Р?p1.add(label1);Р?p2.setBounds(25,70,400,50); Р?p2.add(label2);Р?p2.add(jine);Р?p2.add(button1);Р?Р?add(p1);Р?add(p2);Р?setVisible(true);Р?Р?}Рpublic class BHandler implements ActionListener {