File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 9990

If I understand you correctly, you want a sub-menu?
If yes, check this out

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:
subject: how to add a submenu
Similar Threads
a JMenuItem question,the value is too long
JFrame and JMenu
JMenu Problem
How to add JMenuItem to my JMenu??
simple web browser in java