Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMenu/Sub-menu creation

 
Karen Baog
Ranch Hand
Posts: 120
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Swing...
 
James Carman
Ranch Hand
Posts: 580
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic