This link shows you how to set it up: http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html.
If it were me, Id get your main GUI class to implement the KeyListener interface, although
Managing Active Directory can get complicated. Often, the native tools for managing AD are just not up to the task. The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.
Working with files is a moderately common task in Java. For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.
However, when your application has vi…