Solved

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

Posted on 2001-06-04
3
416 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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…
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 …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

740 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