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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.