谁帮我改下这个java代码的错误!!!

来源:百度知道 编辑:UC知道 时间:2024/05/16 01:12:07
package survry;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class survry extends JFrame implements ActionListener{
private JPanel jp=new JPanel();
private JCheckBox[]jcbArray={ new JCheckBox("交友"),new JCheckBox("户外"),
new JCheckBox("购物"),new JCheckBox("旅游"),new JCheckBox("其他")};
private JRadioButton [] jrbArray={ new JRadioButton("5~15岁"),
new JRadioButton("16~25岁",true),new JRadioButton("26~35岁")
, new JRadioButton("36~45岁"),new JRadioButton("46~55岁") };
private JButton[]jbArray={ new JButton("提交"), new JButton("清空") };
private JLabel[] jlArray={ new JLabel("年龄段:"), new JLabel("兴趣爱好:"),
new JLabel("调查的结果为:");}
private JTextField jtf=new JTextField ();
private

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JTextField;

public class survry extends JFrame implements ActionListener {
private JPanel jp = new JPanel();
private JCheckBox[] jcbArray = { new JCheckBox("交友"), new JCheckBox("户外"),
new JCheckBox("购物"), new JCheckBox("旅游"), new JCheckBox("其他") };
private JRadioButton[] jrbArray = { new JRadioButton("5~15岁"),
new JRadioButton("16~25岁", true), new JRadioButton("26~35岁"),
new JRadioButton("36~45岁"), new JRadioButton("46~55岁") };
private JButton[] jbArray = { new JButton("提交"),