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 14

image

It’s the Event of the Year: Events in Swing Applications

I have been referencing events, of all sorts, in many of the preceding chapters. It seems like a good time to take a better look at how events are handled in Swing applications.

This chapter is all about events, such as mouse clicks, and preparing an application to handle these kinds of events when they occur. You’ll also see how easy it is in Jython to associate a method with an event. It is important to note that methods that are called when specific events occur are called listeners. The association of a listener method with a specific kind of event is a kind of registration. ...

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