| ||||
Copyright 1999 Sams Publishing |
|
Chapter 9: Threads and Swing |
Overview |
The Swing graphical toolkit brings a host of new components to the Java platform. Theres a catch, thoughSwing components are not designed for a multithreaded environment. In this chapter, Ill show how you how to safely interact with Swing components in a multithread-safe manner using SwingUtilities.invokeAndWait() and SwingUtilities.invokeLater() . Ill also show you some ways that animation can be achieved using Swing components and threads. |
| |||
Toc |