Solved

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

Posted on 2001-06-04
3
397 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 150 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

896 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now