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
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
toFront methods, we now have the ...