FlowLayout
CardLayout
North and South of BorderLayout
East and West of BorderLayout
GridLayout
第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, 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
第4题:
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?()
第5题:
JPanel默认的布局管理器是()
第6题:
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?()
第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 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? ()
第8题:
Which statement is true about mouse events? ()
第9题:
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.
第10题:
BorderLayout
FlowLayout
CardLayout
GridLayout
第11题:
Fathoms and meters
Miles and kilometers
Arc and degrees
Degrees and minutes
第12题:
Add a Denied member set for the West clients to NorthRole.
Add an Allowed member set for the South clients to NorthRole.
Create a new role for the sales manager and add a Denied member set for the South clients.
Create a new role for the sales manager and add an Allowed member set for the South clients. Remove the sales manager from SouthAndWestRole.
第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题:
Tasmania is an island which lies()of the Australian mainland.
第16题:
Which layout manager is used when the frame is resized the buttons’s position in the Frame might be changed?()
第17题:
New Zealand is situated about 1, 500 km ()
第18题:
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?()
第19题:
Which tool in the layout model could you use to create an external boiler plate object?()
第20题:
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?()
第21题:
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
第22题:
Direction Direction=EAST;
Direction direction=Direction.WEST;
int a- Direction.NORTH;
Direction direction=2;
第23题:
Cause error during compilation.
south east
south to north east to west
south to north east
south east to west