wood burning stoves
The moose likes Swing / AWT / SWT and the fly likes how to add a submenu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to add a submenu" Watch "how to add a submenu" New topic

how to add a submenu

santosh kimothi
Ranch Hand

Joined: Jun 10, 2009
Posts: 32
i added a jmenuitem to menu, and menu to menubar, its working fine......

but how can i add another menu to jmenuitem,,,,,,,can anybody tell me how to do this...please

Santosh Kimothi,
Java programmer
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10651

If I understand you correctly, you want a sub-menu?
If yes, check this out http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html

PS. Your post title says adding text... whereas your post says adding a submenu. You might want to use the to edit the title.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
santosh kimothi
Ranch Hand

Joined: Jun 10, 2009
Posts: 32
thanks for your reply,,,, now i understand how to add submenu..

thanks again
I agree. Here's the link: http://aspose.com/file-tools
subject: how to add a submenu