wood burning stoves 2.0*
The moose likes Ranch Office and the fly likes About java. awt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "About java. awt" Watch "About java. awt" New topic
Author

About java. awt

OLADAPO BADMUS
Greenhorn

Joined: Aug 14, 2001
Posts: 5
Which two statements are true? (Choose two).
a.The button labeled �North and South� will have the same width
b.The button labeled �North and South� will have the same height.
c.The height of the button labeled �North� can vary if the Frame is resized.
d.The height of the button labeled �South� can vary 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.
EXHIBIT.
1.import java.awt*;
2.
3. public class X extends Frame {
4. public static void main (string[ ]) (
5. X x = new X ( );
6. x = pack ( );
7. x.setvisible (true);
8.}
9.
10. public X ( ) {
11. setLayout {new BorderLayout.11 );
3. 12. panel p = new Panel ( );
4.add {p. BorderLayout,( NORTH );
5.Button b = new Button (�North�);
6.p.add [b];
7.Button b[ = new Button (�SOUTH�);
8.add (bi, BorderLayout.SOUTH);
9. }
10.}
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
moved to awt forum


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About java. awt
 
Similar Threads
BorderLayout question
Questions from geocities silicon valley
Resizing buttons with BorderLayout ?
About java. awt
Jq + Question ID :970967626570