This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to add a submenu" Watch "how to add a submenu" New topic
Author

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: 10175
    
    8

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