(panel,BorderLayout.SOUTH);Р Р panel2=new JPanel();Р panel2.setLayout(new GridLayout(2,3,4,4));Р ButtonGroup group=new ButtonGroup();Р a=new JRadioButton[3]; //进制转换按钮Р a[0] =new JRadioButton("二进制运算");Р a[1] =new JRadioButton("十进制运算",true); Р a[2] =new JRadioButton("八进制运算");Р for(int i=0;i<3;i++){Р group.add(a[i]);Р panel2.add(a[i]);Р a[i].addActionListener(jinzhi);Р }Р JButton b1=new JButton("Backspace"); /*Backspace键*/ Р JButton b2=new JButton("CE"); Р JButton b3=new JButton("C");Р b1.addActionListener(new ActionListener() Р {public void actionPerformed(ActionEvent e) Р {String s1=display.getText(); Р int l=s1.length(); Р display.setText(s1.substring(0 ,l-1)); Р } Р });Р panel2.add(b1);Р Р /*C键监听*/ Р Р b3.addActionListener(new ActionListener() Р {public void actionPerformed(ActionEvent e)