public abstract class ToolWindow extends View implements DockingListener {
public ToolWindow(String title) {
super(title);
getContentPane().setLayout(new BorderLayout());
setTitle(title);
Titlebar bar = getTitlebar();
bar.setText(title);
Icon i = getIcon();
if (i != null) {
getDockingProperties().setDockbarIcon(i);
getDockingProperties().setTabIcon(i);
bar.setIcon(i);
}
if (isCloseable())
addAction(DockingConstants.CLOSE_ACTION);
if (isPinnable())
addAction(DockingConstants.PIN_ACTION);