• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 239
  • Last Modified:

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");
  • 2
2 Solutions
Simplest is to use JOptionPane.showMessageDialog
t38Author Commented:
ok thanks, holw about adding the actual 'info' drop down on the quit menu?
you need to add menuItem,

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

and on the actionalistener for info, you display the dialog.
t38Author Commented:
Thanks for your assistance
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.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now