A Button is positioned in a Frame. Only height of the Button is affected by the Frame while the width is not. Which layout manager should be used?()
第1题:
下列程序采用BorderLayout布局管理,选择正确的语句填入横线处,实现在North区域显示一个名字为“北方”的Button构件。 import java.awt.*; public class ex48 { public static void main(String[] args) { frame. frm = new Frame. ("北方"); frm.setLayout(new BorderLayout()); frm.setSize(200, 200); frm.setVisible(true); } }
A.add("Nouth", new Button("北方"));
B.frm.add("South", new Button("北方"));
C.frm.add("Nouth", new Button("北方"));
D.Frm.add("South", Button("北方"));
第2题:
The buoy symbol printed on your chart is leaning to the northeast. This indicates ______.
A.you should stay to the north or east of the buoy
B.you should stay to the west or south of the buoy
C.the buoy is a major lighted buoy
D.nothing special for navigational purposes
第3题:
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
第4题:
Tasmania is an island which lies()of the Australian mainland.
第5题:
Which layout manager is used when the frame is resized the buttons’s position in the Frame might be changed?()
第6题:
New Zealand is situated about 1, 500 km ()
第7题:
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?()
第8题:
定义枚举如下: public enum Direction{ EAST,SOUTH,WEST,NORTH } 下列正确使用该枚举类型的语句是哪项?()
第9题:
Which statement is true about mouse events? ()
第10题:
The cursor style can be set to CAUTION.
Double-clicking a mouse button can potentially fire six mouse event triggers.
The values for the SYSTEM.MOUSE_BUTTON_PRESSED system variable can only be 1 or 2.
Click and double-click button actions can only detect if the mouse is positioned in an item.
第11题:
BorderLayout
FlowLayout
CardLayout
GridLayout
第12题:
FlowLayout
CardLayout
North and South of BorderLayout
East and West of BorderLayout
GridLayout
第13题:
下列各种布局管理器中,Frame类的默认布局是()
A. FlowLayout
B. CardLayout
C. BorderLayout
D. GridLayout
第14题:
If the center of low pressure is due west of you in the Northern Hemisphere, which wind direction should you expect?
A.South to west
B.South to east
C.West to north
D.North to east
第15题:
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
第16题:
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?()
第17题:
JPanel默认的布局管理器是()
第18题:
在应用程序窗体中,若想定位按钮,且使按钮的大小随窗体变化而变化,可以使用的布局有()。
第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 GridLayout (2,2)); Panel p1 = new panel(); Add(p1); Button b1= new Button (“One”); P1.add(b1); Panel p2 = new panel(); Add(p2); Button b2= new Button (“Two”); P2.add(b2); Button b3= new Button (“Three”); add(b3); Button b4= new Button (“Four”); add(b4); ) ) Which two statements are true? ()
第20题:
Which tool in the layout model could you use to create an external boiler plate object?()
第21题:
You need to ensure that the new sales manager is able to view clients within only the North and South regions. What should you do?()
第22题:
you should stay to the north or east of the buoy
you should stay to the west or south of the buoy
the buoy is a major lighted buoy
nothing special for navigational purposes
第23题:
Fathoms and meters
Miles and kilometers
Arc and degrees
Degrees and minutes