• 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

Frame

 
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If u wat to create a GUI Application using AWT,U constructed a frame calling
Frame f=new Frame();
What Methods u need to call on the frame f to make it visible.
1)f.setVisible(true)
2)f.setSize(true)
3)Both A&B.
4)There is no need to call any method's on f explicitly to make it visible.
I chose option (1) but the given answer is option (3).Please tell me the correct option.
seSize() method takes an int parameter not boolean parameter.
 
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To make Frame visible option 'setVisible(true)' is certainly correct. If setSize() or setBounds() is not used with the respective parameters the frame will still not be visible in my humble opinion.
The option 'setSize(true)' looks like a typo. Where is that question from?
Percy
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic