O'Reilly logo

The Definitive Guide to NetBeans™ Platform 7 by Heiko Böck

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

C H A P T E R  21

Palette

The Form Editor is a very good example for using the palette module. The Form Editor places its AWT and Swing components on the palette (see Figure 21-1). These components can then be moved via drag-and-drop. You can also add components to the palette during runtime. The content of the palette window is managed and provided by a PaletteController. Such a PaletteController can be made available by a top component via the Lookup. This means that as soon as a top component, in whose Lookup is located a PaletteController instance, becomes active, the palette window is opened and its content is displayed. A PaletteController is created via the PaletteFactory class. There are two ways to provide the components. You can either ...

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