下面的应用程序中有一个组,组内有4个单选按钮,请在画线处填入正确的语句使程序能正确运行。
import javax.swing.*;
public class OneTeam extends JFrame
JRadioButten[] teams = new JRadioButten[3];
public OneTeam()
super("One Team");
setSize (140,160);
setDefaultCloseOperatien(JFrame.EXlT ON CLOSE);
JPanel pane = new JPanel();
teams[0] = new JRadioButton("red choose");
teams[1] = new JRadieButton("blue choose");
teams[2] = new JRadieButten("green choose");
【11】 ;
for (int i = 0i < teams.length;i++)
group.add(teams[i]);
pane.add(teams[i]);
setContentPane(pane);
public static void main(String arguments[])
OneTeam ot= new OneTeam();
ot.show();