How can we add menuBar in Applet using awt without using Frame

  I add a menu using awt.
I m not wishing to set a Frame in my Applet since i want to add it in a browser...If we use Frame it appears like another window.I want the the menu in the browser itself.But menuBar is added only in Frame.Other wise it will return some error messege

I will be greatily satisfy if u give me a reply.Examples will help me more...
Who is Participating?
polinaConnect With a Mentor Commented:
Try to add Frame to Applet and setMenuBar on Frame instead
of Applet.
sujeeshlalAuthor Commented:
When I try to set a menuBar using setMenuBar method it returned an error msg..How can  Overcome it
i think its better to do it using swing
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.