protected FloatingDockableContainer createFloatingDockableContainer(
			TabbedDockableContainer tdc) {
		Window ownerWindow = SwingUtilities.getWindowAncestor(this);
		FloatingDockableContainer fdc = DockableContainerFactory.getFactory()
				.createFloatingDockableContainer(ownerWindow);

		fdc.installDocking(this);

		fdc.setInitialTabbedDockableContainer(tdc);

		// JDialog dialog = (JDialog) fdc;

		KeyStroke ks = (KeyStroke) UIManager
				.get("DockingDesktop.floatActionAccelerator");
		if (ks != null) {
			JRootPane root = DockingUtilities.getRootPane(fdc);
			root.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW)
					.put(ks, "float");
			root.getActionMap().put("float", floatAction);
		}

		// dialog.pack();

		// dialog.setVisible(true);

		return fdc;

	}