Solved

Create an About drop down menu in Java

Posted on 2011-03-11
4
229 Views
Last Modified: 2012-05-11
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);
0
Comment
Question by:t38
  • 2
4 Comments
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 200 total points
ID: 35110051
Simplest is to use JOptionPane.showMessageDialog
0
 

Author Comment

by:t38
ID: 35110098
ok thanks, holw about adding the actual 'info' drop down on the quit menu?
0
 
LVL 26

Accepted Solution

by:
ksivananth earned 300 total points
ID: 35110221
you need to add menuItem,

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

and on the actionalistener for info, you display the dialog.
0
 

Author Closing Comment

by:t38
ID: 35110302
Thanks for your assistance
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

823 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question