O'Reilly logo

Java 7 New Features Cookbook by Jennifer L. Reese, Richard M. Reese

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 8. Handling Events

In this chapter, we will cover the following:

  • Managing extra mouse buttons and high resolution mouse wheels

  • Controlling focus when displaying a window

  • Using secondary loops to mimic modal dialog boxes

  • Handling spurious thread wakeups

  • Handling applet initialization status with event handlers

Introduction

There have been several additions to Java 7 that address events or are related to events. This includes the handling of mouse events where enhanced support is provided for the detection of mouse buttons and for using high resolution mouse wheels, as we will see in the Managing extra mouse buttons and high resolution mouse wheels recipe.

When a window is made visible with either the setVisible or toFront methods, we now have the ...

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