Solved

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

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
java continue statement 10 72
factorial example challenge 10 61
solarwind tftp server 2 30
Non-recursive backtracking, using a stack 1 48
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

707 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

12 Experts available now in Live!

Get 1:1 Help Now