O'Reilly logo

Graphic Java™ 1.2, Volume I: AWT, Third Edition by David M. Geary

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

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 ...

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