Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2001-06-04
3
Medium Priority
?
437 Views
Last Modified: 2010-08-05
  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...
                                                regards..
                                                                   Sujeesh
0
Comment
Question by:sujeeshlal
3 Comments
 

Author Comment

by:sujeeshlal
ID: 6152213
When I try to set a menuBar using setMenuBar method it returned an error msg..How can  Overcome it
0
 

Accepted Solution

by:
polina earned 300 total points
ID: 6153355
Try to add Frame to Applet and setMenuBar on Frame instead
of Applet.
0
 

Expert Comment

by:surendraboppana
ID: 6153525
i think its better to do it using swing
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question