Draggable Lightweights and a Double Buffered Container

Figure 24-2 shows an applet containing four draggable lightweight components that are displayed on a double buffered container.

Figure 24-2. DoubleBufferedContainer with Draggable Lightweights

The applet is listed in Example 24-2.

Example 24-2. DoubleBufferedContainerTest Applet
 import java.applet.Applet; import java.net.URL; import java.awt.*; import java.awt.event.*; public class DoubleBufferedContainerTest extends Applet { private DoubleBufferedContainer container; public void init() { Toolkit ...

Get Graphic Java™ 1.2, Volume I: AWT, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.