• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

About java. awt

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.}
 
Sheriff
Posts: 9099
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
moved to awt forum
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic