单选题在Java语 言中,把组件放在BorderLayout的()区域时,它会自动垂直调整大小,但不是水平调整。A North或SouthB East或WestC CenterD North,South或CenterE 任何区域

题目
单选题
在Java语 言中,把组件放在BorderLayout的()区域时,它会自动垂直调整大小,但不是水平调整。
A

North或South

B

East或West

C

Center

D

North,South或Center

E

任何区域


相似考题
更多“单选题在Java语 言中,把组件放在BorderLayout的()区域时,它会自动垂直调整大小,但不是水平调整。A North或SouthB East或WestC CenterD North,South或CenterE 任何区域”相关问题
  • 第1题:

    请将下列程序的空白处补充完整。

    Importjava.awt.*;

    PublicclassEll_4

    {

    Publicstaticvoidmain(Stringargs[])

    {

    Framef=newFrame(“BorderLayout”);

    fiadd(“North”,newbuRon(“North”));

    f.add(“East”,newbutton(“East”));

    f.add(“West”,newbutton(“West”));

    f.add(“South”,tf);

    f.setSize(200,200)

    fipack();

    fisetVisible(true);

    }

    }


    正确答案:TextField if=llew TextField("Text");
    TextField if=llew TextField("Text"); 解析: 本题考查java中常用组件的创建。由题可知,创建的是3个按键和1个文本框,tf为该文本框。

  • 第2题:

    使用______位置参数,能够使一个部件位于容器的右边。

    A.BorderLayout.RIGHT

    B.BorderLayout.WEST

    C.BonierLayout.EAST

    D.BorderLayout.NORTH


    正确答案:C

  • 第3题:

    If a weather bulletin shows the center of a low pressure system to be 100 miles due east of you, what winds can you expect in the Southern Hemisphere? ______.

    A.South-southwesterly

    B.North-northwesterly

    C.South-southeasterly

    D.North-northeasterly


    正确答案:A
    假如你的气象报告显示有一低压区域的中心正好在你船位置以东100海里,在南半球你将预计是什么风?南到西南风。

  • 第4题:

    In the Northern Hemisphere, if the center of a high pressure area is due west of you, what wind direction would you expect?______.

    A.South to west

    B.South to east

    C.North to west

    D.North to east


    正确答案:C
    在北半球,如果高压中心在你的西部,你预料到是什么风向?西北风。

  • 第5题:

    在Java语言中,把组件放在BorderLayout的()区域时,它会自动垂直调整大小,但不是水平调整。 

    • A、North或South
    • B、East或West
    • C、Center
    • D、North, South 或Center
    • E、任何区域

    正确答案:B

  • 第6题:

    在Java语言中,把组件放在BorderLayout的()区域时,它会自动垂直调整大小,但不是水平调整。(选择一项)。

    • A、North或South
    • B、East或West
    • C、Center
    • D、North,South或Center

    正确答案:A

  • 第7题:

    在应用程序窗体中,若想定位按钮,且使按钮的大小随窗体变化而变化,可以使用的布局有()。

    • A、FlowLayout
    • B、GridLayout
    • C、BorderLayout的center区域
    • D、BorderLayout的East或West区域
    • E、BorderLayout的North或South区域

    正确答案:B,C,D,E

  • 第8题:

    如果java.awt.Containerc的布局为BorderLayout,则c.add(newJbutton())的默认位置参数是()

    • A、BorderLayout.EAST
    • B、BorderLayout.WEST
    • C、BorderLayout.CENTER
    • D、编译错误

    正确答案:C

  • 第9题:

    单选题
    在Java语言中,把组件放在BorderLayout的()区域时,它会自动垂直调整大小,但不是水平调整。(选择一项)。
    A

    North或South

    B

    East或West

    C

    Center

    D

    North,South或Center


    正确答案: C
    解析: 暂无解析

  • 第10题:

    单选题
    10. class Nav{  11. public enum Direction { NORTH, SOUTH, EAST, WEST }  12. }  13. public class Sprite{  14. // insert code here  15. }  Which code, inserted at line 14, allows the Sprite class to compile?()
    A

     Direction d = NORTH;

    B

     Nav.Direction d = NORTH;

    C

     Direction d = Direction.NORTH;

    D

     Nav.Direction d = Nav.Direction.NORTH;


    正确答案: D
    解析: 暂无解析

  • 第11题:

    多选题
    在应用程序窗体中,若想定位按钮,且使按钮的大小随窗体变化而变化,可以使用的布局有()。
    A

    FlowLayout

    B

    GridLayout

    C

    BorderLayout的center区域

    D

    BorderLayout的East或West区域

    E

    BorderLayout的North或South区域


    正确答案: E,D
    解析: 暂无解析

  • 第12题:

    单选题
    在Java语 言中,把组件放在BorderLayout的()区域时,它会自动垂直调整大小,但不是水平调整。
    A

    North或South

    B

    East或West

    C

    Center

    D

    North,South或Center

    E

    任何区域


    正确答案: A
    解析: 暂无解析

  • 第13题:

    下列程序在Frame中设定BorderLayout布局管理器,选择正确的语句填入程序的横线处。 import java.awt.*; public class ex43 extends Frame { public static void main(String[] args) { ex43 bj = new ex43("BorderLayout"); ______ obj.add("North", new Button("North")); obj.add("South", new Button("Sourth")); obj.add("East", new Button ("East")); obj.add("West", new Button ("West")); obj. add ("Center", new Button ( "Center" ) ); obj.pack(); obj. setVisible (true); } public ex43(String str) { super (str); } }

    A.obj.setLayout(new BorderLayout());

    B.setLayout(new Borderkayout());

    C.setLayout(BorderLayout());

    D.obj.setLayout(BorderLayout());


    正确答案:A

  • 第14题:

    The general circulation of the surface water in Mediterranean is ______.

    A.counter-clockwise

    B.clockwise

    C.from east to west

    D.from north to south


    正确答案:A

  • 第15题:

    In the Northern Hemisphere, when the center of a high pressure system is due east of your position, you can expect winds from the ______.

    A.south to east

    B.north to west

    C.north to east

    D.south to west


    正确答案:A
    在北半球,如果高压中心在你的东部,你预料到是什么风向?东南风。

  • 第16题:

    在Java语 言中,把组件放在BorderLayout的()区域时,它会自动垂直调整大小,但不是水平调整。

    • A、North或South
    • B、East或West
    • C、Center
    • D、North,South或Center
    • E、任何区域

    正确答案:B

  • 第17题:

    class Parent {     String one, two;  public Parent(String a, String b){     one = a;     two = b;    }  public void print(){ System.out.println(one); }    }  public class Child extends Parent {     public Child(String a, String b){     super(a,b);     }  public void print(){  System.out.println(one + " to " + two);     }  public static void main(String arg[]){     Parent p = new Parent("south", "north");     Parent t = new Child("east", "west");     p.print();     t.print();     }     }  Which of the following is correct?()

    • A、 Cause error during compilation. 
    • B、 south         east 
    • C、 south to north     east to west    
    • D、 south to north      east    
    • E、 south     east to west

    正确答案:E

  • 第18题:

    New Zealand is situated about 1, 500 km ()

    • A、north-west of Australia
    • B、south-east of Australia
    • C、north-east of Australia
    • D、south-west of Australia

    正确答案:B

  • 第19题:

    import java.awt.*;   public class X extends Frame {   public static void main (String args) {   X x = new X();   x.pack();   x.setVisible(true);   }  public X() {   setLayout (new BordrLayout());   Panel p = new Panel ();   add(p, BorderLayout.NORTH);   Button b = new Button (“North”);   p.add(b):   Button b = new Button (“South”);   add(b1, BorderLayout.SOUTH):   }   }   Which two statements are true?()

    • A、 The buttons labeled “North” and “South” will have the same width.
    • B、 The buttons labeled “North” and “South” will have the same height.
    • C、 The height of the button labeled “North” can very if the Frame is resized.
    • D、 The height of the button labeled “South” can very if the Frame is resized.
    • E、 The width of the button labeled “North” is constant even if the Frame is resized.
    • F、 The width of the button labeled “South” is constant even if the Frame is resized.

    正确答案:B,E

  • 第20题:

    定义枚举如下:  public  enum  Direction{      EAST,SOUTH,WEST,NORTH      }  下列正确使用该枚举类型的语句是哪项?()    

    • A、Direction Direction=EAST;
    • B、Direction direction=Direction.WEST;
    • C、int a- Direction.NORTH;
    • D、Direction direction=2;

    正确答案:B

  • 第21题:

    单选题
    定义枚举如下:  public  enum  Direction{      EAST,SOUTH,WEST,NORTH      }  下列正确使用该枚举类型的语句是哪项?()
    A

    Direction Direction=EAST;

    B

    Direction direction=Direction.WEST;

    C

    int a- Direction.NORTH;

    D

    Direction direction=2;


    正确答案: C
    解析: 暂无解析

  • 第22题:

    单选题
    class Parent {     String one, two;  public Parent(String a, String b){     one = a;     two = b;    }  public void print(){ System.out.println(one); }    }  public class Child extends Parent {     public Child(String a, String b){     super(a,b);     }  public void print(){  System.out.println(one + " to " + two);     }  public static void main(String arg[]){     Parent p = new Parent("south", "north");     Parent t = new Child("east", "west");     p.print();     t.print();     }     }  Which of the following is correct?()
    A

     Cause error during compilation. 

    B

     south         east 

    C

     south to north     east to west    

    D

     south to north      east    

    E

     south     east to west


    正确答案: D
    解析: 这个题目涉及继承时的多态性问题,在前面的问题中已经有讲述,要注意的是语句t.print();在运行时t实际指向的是一个Child对象,即java在运行时决定变量的实际类型,而在编译时t是一个Parent对象,因此,如果子类Child中有父类中没有的方法,例如printAll(),那么不能使用t.printAll()。

  • 第23题:

    单选题
    在Java语言中,把组件放在BorderLayout的()区域时,它会自动垂直调整大小,但不是水平调整。
    A

    North或South

    B

    East或West

    C

    Center

    D

    North, South 或Center

    E

    任何区域


    正确答案: E
    解析: 暂无解析

  • 第24题:

    单选题
    ______ Pacific Ocean is ______ very large sea to the west of North and South America, and to the east of Asia and Australia.
    A

    The; a

    B

    A; the

    C

    The; the

    D

    A; a


    正确答案: A
    解析: