Create an About drop down menu in Java

hi, i'd like to create a drop down 'About' menu on a Java GUI, so when it's clicked the user sees an 'Info' menu item when chosen displays a dialgo box giving information about the gui

this creates the 'About' part but i can't figure how to add a drop down to create the info part and the message dialog, any assitance appreciated

JMenu aboutMenu = new JMenu ("About");
          menubar.add(aboutMenu);
t38Asked:
Who is Participating?
 
ksivananthConnect With a Mentor Commented:
you need to add menuItem,

JMenuItem info = new JMenuItem( "Info" ) ;
aboutMenu.add( info ) ;

and on the actionalistener for info, you display the dialog.
0
 
CEHJConnect With a Mentor Commented:
Simplest is to use JOptionPane.showMessageDialog
0
 
t38Author Commented:
ok thanks, holw about adding the actual 'info' drop down on the quit menu?
0
 
t38Author Commented:
Thanks for your assistance
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.