网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

如何设置弹性布局的约束?()

  • A、利用组件的setConstraints函数设置约束
  • B、利用面板的setConstraints函数设置约束
  • C、利用而已管理器的putConstraints函数设置约束
  • D、利用SpringLayoutConstraints对象设置约束

参考答案

更多 “如何设置弹性布局的约束?()A、利用组件的setConstraints函数设置约束B、利用面板的setConstraints函数设置约束C、利用而已管理器的putConstraints函数设置约束D、利用SpringLayoutConstraints对象设置约束” 相关考题
考题 以下的代码是如何实现事件处理过程的?()   class HelllWordFrame_jButton4_actionAdapter implements     ActionListener {  HelloWorldFrame adaptee;  HelloworldFrame_jButton4_actionAdapter(HelloWorldFrame adaptee){       this.adaptee=adaptee;}  public void actionPerformed(ActionEvent e){        adaptee,jButton4_actionPerfomed(e);}  }A、在事件处理类的actionPerformed函数中,调用主框架的对应函数进行处理B、事件处理类实现了ActionListener接口C、主框架作为事件处理类的一部分,包括在事件处理类中D、在事件处理类的构造函数中将主框架的引用变量传递给事件处理类E、在事件处理类的构构造函数中,创建一个主框架对象,并显示该对象

考题 Given this fragment in a servlet: 23.if(req.isUserInRole("Admin")) { 24.// do stuff 25.} And the following fragment from the related Java EE deployment descriptor: 812. 813.Admin 814.Administrator 815. 900. 901.Admin 902.Administrator 903. What is the result?()A、Line 24 can never be reached.B、The deployment descriptor is NOT valid.C、If line 24 executes, the user’s role will be Admin.D、If line 24 executes, the user’s role will be Administrator.E、If line 24 executes the user’s role will NOT be predictable.

考题 public class TestApp{  public static void main(String[] args){        try{  int i = 0;           int j = 1 / i;  System.out.println(“1”);        }catch(Exception e){              System.out.print(“3”);       }finally{  System.out.print(“4”);       }   } }  上述程序运行后的输出是哪项?() A、 4B、 34C、 43D、 14

考题 Internet的网络层含有的协议是()。A、IPB、ICMPC、ARPD、RARP

考题 Which two are benefits of fully encapsulating a class?()  A、 Performance of class methods is improved.B、 Implementation details of the class are hidden.C、 Access modifiers can be omitted on class data members.D、 Code that uses the encapsulation class can access data members directly.E、 Internal operation of the class can be modified without impacting clients of that class.

考题 小程序的起始执行函数是什么?()   A、 init函数,用于初始化小程序B、 start函数,用于启动小程序C、 main函数,是入口函数D、 run函数,使小程序线程的启动函数

考题 class Test2{   public static void main(String [] args){   boolean x=true;   boolean y=false;   short z=42;   if((x==true)y=true))z++;   if((y==true||++z=44))z++;   System.out.println(“z=”+z);  }  }   结果是什么?()  A、 z=42B、 z=43C、z=44D、 z=45E、编译失败F、运行的时候有异常抛出

考题 在JPanel中绘图应覆盖哪个方法()A、paint(Graphicsg)B、paintComponent(Graphicsg)C、print(Graphicsg)D、repaint(Rectangler)