This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMenu/Sub-menu creation

 
Karen Baog
Ranch Hand
Posts: 120
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone!

Her I am again, soliciting help, whilst I'm learning this new Java language.

I'm trying to create a menubar.
As my instructor insists on hard-coding everything, and not do any drag/drop methods, I tend to end up with so many problems. And here's one: the sub-menu has this right-pointing arrowhead (as if there's more sub-menu listing available).

Here's a snippet of code, and please tell me what I should do.





The result I get is, when I click the File menu:

Save >


So, there's this right-pointing arrowhead.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Swing...
 
James Carman
Ranch Hand
Posts: 580
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're adding a menu to a menu which will cause that to happen. Try adding a JMenuItem for the Save command.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic