填空题

一个类的定义分为类注释、 【13】 和类体的定义。

【参考答案】

类声明
<上一题 目录 下一题>
热门 试题

填空题
MouseEvent事件可以实现的监听接口是MouseListener和 【12】 。
填空题
下面的应用程序中有一个组,组内有4个单选按钮,请在画线处填入正确的语句使程序能正确运行。import javax.swing.*;public class OneTeam extends JFrame{JRadioButton[] teams = new JRadioButton[3];public OneTeam(){super( One Team );setSize (140,160);setDefaultCloseOperation(JFrame.EXIT ON CLOSEJPanel pane = new JPanel();teams[0] = new JRadioButton( red choose );teams[l] = new JRadioButton( blue choose );teams[2] = new JRadioButton( green choose );【11】 ;for ( int i = 0;i < 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();}
相关试题
  • 下列Applet当鼠标进入窗口时,在状态栏显示...
  • Applet生命周期包括Applet的创建、运行和 ...