Sample My Advanced Palette project. See the chapter called "Component Palettes" in the book "Rich Client Programming: Plugging into the NetBeans Platform" for details.

This sample provides a palette filter. When a checkbox is selected, new entries are shown in the palette.