This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to add a submenu

 
santosh kimothi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Maneesh Godbole
Saloon Keeper
Posts: 11085
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
santosh kimothi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your reply,,,, now i understand how to add submenu..

thanks again
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic