• 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

AWT QUESTION FROM MOCK

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,
SARGE IN HIS TEST1 Q27 ASKS?
WHAT CANNOT BE ADDED TO A CONTAINER :-
A)APPLET B)CONATINER C)COMPONENT D)MENU E)PANEL
ACCORDING 2 HIM ANS IS D . NOW WHY NOT A ALSO
THX IN ADVANCE
REGARDS,
KAUSHIK
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kaushik,
A can be added to a container because Applet is a subclass of Panel which can be added to a container.
Regards,
Manfred.
 
Ranch Hand
Posts: 400
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Kaushik...
applet is inherited from panel.
stevie
 
kaushik banerjee
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Manfred & Steve,
i know that applet is inherited from panel but have u seen any code where an applet has been added to a container for eg a panel or a frame. can u provide me a code snippet of the same ?
Pls do reply
Thx in advance
Regards,
Kaushik
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
U can add an applet to a frame and viceversa.
U can try it urself. and lets not forget that an applet runs in an appletviewer too.
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here you go.

Enjoy,
Manfred.
 
kaushik banerjee
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Manfred & Steve,
thanks 4 the code . i managed 2 add the applet on a frame. pls can u consider the question again. it says Menu cannot be added 2 a container but PopUp Menu is also a menu & it can be added 2 any component . then isn't the q wrong? what do u think?
Regards,
Kaushik
 
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It hasn't mentioned popupmenu in the the choice's.Menu is wrong because u cannot add a menu to thecontainer directly,In order to add menu to a conatiner u got to add a menubar inside which u can add menu but not directy.
 
Destroy anything that stands in your way. Except this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic