Originally posted by Kavitha S:
Is it possible to add a menubar to an applet? I see that there's no setMenuBar() method for an applet, it exists only for frames. Kindly help me
Kavitha,
One alternative is to use JApplet, rather than its superclass Applet. You can setJMenuBar(JMenuBar menuBar) in that JApplet... But the only difference is that JApplet is in javax.swing package and its superclass Applet is in java.applet package...
Since JApplet is a subclass of that Applet, every operation available in Applet will be available in JApplet as well... Hope this helps...

Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0