• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

About java. awt

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
moved to awt forum
 
reply
    Bookmark Topic Watch Topic
  • New Topic