public DockHeader(DockContainer dc) {
		super.setLayout(this);
		setOpaque(true);
		setBackground(DockColors.BACKGROUND);
		setBorder(new CompoundBorder(new SelectiveLineBorder(DockColors.SHADOW, 0, 0, 1, 0), new EmptyBorder(0, 4, 0, 4)));
		for (Dockable dockable : dc.getDockables()) {
			add(new DockTab(dockable));
		}
		mShowTabsButton = new ShowTabsButton();
		add(mShowTabsButton);
		mMaximizeRestoreButton = new IconButton(StdImage.DOCK_MAXIMIZE, MAXIMIZE_TOOLTIP, this::maximize);
		add(mMaximizeRestoreButton);
		setDropTarget(new DropTarget(this, DnDConstants.ACTION_MOVE, this));
	}