Palettes appear in WebObjects Builder's palette window. To open the palette window, click on the toolbar or choose Tools Palette.
The icons at the top of the palette window show the available palettes. To select a palette, click its icon. Two pre-configured palettes are provided: Java client-side components and components from the WOExtensions framework.
You can create your own palettes to store frequently-used items, such as custom forms, tables, or images, and you can load palettes created by someone else.
To create a new palette, choose Palettes New Palette. A panel appears, asking you to specify a location to save the palette. (A palette is represented on disk as a folder with the extension .wbpalette.) The palette appears in the palette window with the default palette icon . To change the palette's icon, see "Changing a Palette Icon".
To add an existing palette to the palette window:
To remove a palette from the palette window:If the palette's background is gray, you can't make any changes to it. To enable editing, choose Palettes Make Editable. The palette's background changes to white and its title says "Alt-drag to insert item." Note: When you first create a palette, it is editable until you save it.
The cursor changes to and displays in the palette when you are done dragging. You can change the title of the item by selecting its name and typing. To change the item's icon, see "Changing a Palette Icon".
For example, to add a component to a palette, you would drag its .wo folder to the palette.
Note: On Windows NT, you can't drag an item directly to the palette, because the palette window doesn't appear unless a WebObjects Builder window is in the foreground. Therefore, you must drag the item to WebObjects Builder's icon in the taskbar at the bottom of the screen and hold it until the palette window appears. With the mouse button still down, drag the item to the palette.
To copy an item from a palette to the component window:
Note: If the palette is editable, you can drag the item to the window, but it will disappear from the palette.
You can use any image file recognized by WebObjects Builder (such as a .gif, .tif or .jpg file) to change the icon of a palette or of any item in the palette.
Note: The same caveat for dragging items to the palette on Windows NT applies (see "Creating and Using Palette Items").