This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JMenu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JMenu" Watch "JMenu" New topic
Author

JMenu

Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4347
    
    2

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.


SCJP
Visit my download page
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

And I hope this link will provide enough details for you about the question.


The quieter you are, the more you are able to hear.
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4347
    
    2

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)
 
GeeCON Prague 2014
 
subject: JMenu