• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMenu

 
Randall Twede
Ranch Hand
Posts: 4489
3
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i noticed that JMenu extends JMenuItem. can i add a JMenu to a JMenubar and use it like a JMenuItem. in ActionPerformed() i want to make a second JFrame visible.

for the curious, i currently have 4 menus on the left and a help menu on the right. the help menu has about 6 menu items, each of which displays an information dialog. i want to change it so when you click help in the menubar it shows all the help as a new frame instead.
 
Kemal Sokolovic
Bartender
Posts: 825
5
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And I hope this link will provide enough details for you about the question.
 
Randall Twede
Ranch Hand
Posts: 4489
3
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the excellent answer Kermal. that does indeed answere the question
i decided a better way any way is to have an Info menu with a help menu item and an about menu item(shows who wrote it)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic