Creating an About Box Dialog for a Java Swing GUI to be called from a Help/About JMenuItem how do I create a hot key?

Posted on 2006-11-16
Last Modified: 2010-08-05
I am creating an About Box dialog for a Java Swing GUI to be called from a Help/About JMenuItem.  Should I use a JOptionPane or a JDialog to do it?  Also how do I create a JMenuitem hot key to call the About box dialog.  I want to be able to call it using ALT-A or ALT-SHIFT-A?

Question by:gdkinney_2
LVL 26

Expert Comment

ID: 17962314
use JWindow
LVL 26

Accepted Solution

ksivananth earned 500 total points
ID: 17962316
use setAccelerator(KeyStroke keyStroke) method of JMenuItem
LVL 16

Expert Comment

ID: 17962323
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

LVL 26

Expert Comment

ID: 17962333

Author Comment

ID: 17962373
I might want to put an image or maybe an icon on my About Dialog box as well.
LVL 16

Expert Comment

ID: 17962632
Sorry for the delay. Pretty busy at the moment. This should help you.
LVL 37

Expert Comment

ID: 17963452

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
countX 22 71
changeXy challenge 13 58
array11 challenge 16 52
Printing to a specific printer tray (HP 806dn printer) 3 64
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…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now