O'Reilly logo

Swing for Jython: Graphical Jython UI and Scripts Development using Java Swing and WebSphere Application Server by Robert Gibson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 13

image

Keystrokes, Actions, and Bindings, Oh My!

There are a number of ways that graphical applications obtain user input. This chapter focuses on how applications deal with user input from the keyboard. This is all about what happens when the user presses a key, and how applications perceive and react to this kind of event.

Getting in a Bind: Looking at Bindings

In the section entitled “Menu Mnemonics and Accelerators" in Chapter 10, you learned how convenient it is to associate a particular keystroke1 with an ActionListener2 for menu items. This association is called a binding. Doing this allowed you to simplify the process of causing some ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required