• Post Reply Bookmark Topic Watch Topic
  • New Topic

Menus in applets  RSS feed

 
srivijaya
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!,

I have this doubt from so many days....
Can we place menus in applets.when i'm using set MenuBar(menubar);Its giving some error
ie.,
cannot resolve symbol
symbol : method setMenuBar (java.awt.MenuBar)
location: class Hello
setMenuBar(mb);
^
1 error
Tool completed with exit code 1
Regards.
Vijaya.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Contact,
You can't use setMenuBar() on an Applet. Menus are only available in Frame objects.
There are a lot of free and commercial menus.
I would recommend the Popup Menu
Best luck
[ December 17, 2002: Message edited by: Beno�t d'Oncieu ]
 
srivijaya
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ThanQ!!!
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
contact vijaya,
Welcome to the Java Ranch,
we hope you’ll enjoy visiting as a regular however, your name is not in keeping with our naming policy here at the ranch. (No obviously fictitious names). Please change your display name to an appropriate name as shown in the policy.
You can change your profile here.
Thanks again and we hope to see you around the ranch!!
Cindy
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!