Solved

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
7
571 Views
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?

Thanks,
Dave
0
Comment
Question by:gdkinney_2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 26

Expert Comment

by:ksivananth
ID: 17962314
use JWindow
0
 
LVL 26

Accepted Solution

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

Expert Comment

by:suprapto45
ID: 17962323
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 26

Expert Comment

by:ksivananth
ID: 17962333
0
 

Author Comment

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

Expert Comment

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

http://www2.sys-con.com/itsg/virtualcd/Java/archives/0510/Andrews/index.html
0
 
LVL 37

Expert Comment

by:zzynx
ID: 17963452
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
login form jsp example 2 72
web project error add remove 1 84
JDBC performance 8 35
Where to place postgres JDBC driver jar on tomcat 8 71
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This video teaches viewers about errors in exception handling.
Suggested Courses

751 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