如何设置缺省按钮?()A、调用跟窗格的setdefaultbutton函数设置缺省按钮;B、调用跟窗格的getcontentpane函数获得内容窗格;C、调用内容窗格的setdefaultbutton函数设置缺省按钮;D、调用框架对象的getrootpane函数获得根窗格;E、调用框架对象的setdefaultbutton函数设置缺省按钮;

如何设置缺省按钮?()

  • A、调用跟窗格的setdefaultbutton函数设置缺省按钮;
  • B、调用跟窗格的getcontentpane函数获得内容窗格;
  • C、调用内容窗格的setdefaultbutton函数设置缺省按钮;
  • D、调用框架对象的getrootpane函数获得根窗格;
  • E、调用框架对象的setdefaultbutton函数设置缺省按钮;


相关考题:

public class test {  public static void add3 (Integer i)  int val = i.intValue ( );  val += 3;  i = new Integer (val);  } public static void main (String args [ ] )  {  Integer  i = new Integer (0);  add3 (i);  system.out.printIn (i.intValue ( )  );  } What is the result?()  A、 Compilation will fail.B、 The program prints “0”.C、 The program prints “3”.D、 Compilation will succeed but an exception will be thrown at line 3.

Given the following code:     if (x0) {  System.out.println("first");  }     else if (x-3) {  System.out.println("second");  }     else {  System.out.println("third");  }  Which range of x value would print the string "second"?()    A、 x  0B、 x  -3C、 x = -3D、 x = 0  x  -3

现有:  public  class  TestDemo{     private int X-2;      static int y=3;  public  void method(){      final int i=100;      int j  =10;     class Cinner {  public void mymethod(){      //Here     }     }     }     } 在Here处可以访问的变量是哪些?() A、XB、yC、jD、i

Assume the tag handler for a st:simpletag extends SimpleTagSupport. In what way can scriptlet code be used in the body of st:simple?()A、 Set the body content type to JSP in the TLDB、 Scriptlet code is NOT legal in the body of st:simpleC、 Add scripting-enabled= “true” to the start tag for the st:simple elementD、 Add a pass-through Classic tag with a body content type of JSP to the body of st:simple, and      place the scriptlet code in the body of that tag.

下面哪种布局方式只影响控件的高度,而不影响宽度()A、BorderLayout的WEST和EASTB、BorderLayout的NORTH和SOUTHC、GridLayoutD、FlowLayout

在文件读,写完毕之后是否需要关闭文件?()A、必须关闭,否则会无法完成文件读,写操作B、应当关闭,虽然无用对象回收机制会在回收文件读写对象时自动关闭,但对象回时间不定,因此应当及时调用文件读,写。C、不用关闭,Java在一次读,写操作完毕之后立即自动关闭文件D、不用关闭,Java在进行读写操作时不需要打开文件,因此也不用关闭文件

以下哪些包是Java标准库中常用的包?()   A、java.langB、javax.servlet .httpC、j ava. ioD、java.sql

输入流与输出流各有什么方法?