Sample My First 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 simple palette with cards that can be dragged, dropped, and redragged on a TopComponent.