detachedContentUIMap.put(content, (DesktopContentUI) internalFrame);
} else
throw new IllegalStateException("Invalid Content : " + content);
// Setup dialog
JDialog dialog = new ContentDialog(resourceManager, (PlafContent) content, contentUI, parentFrame);
dialog.addWindowFocusListener(new ContentDialogFocusListener((PlafContent) content));
dialog.toFront();
dialog.setVisible(true);
SwingUtil.repaint(desktopPane);
SwingUtil.requestFocus(dialog);
} else if (oldValue && !newValue) {
Window window = SwingUtilities.windowForComponent(content.getComponent());
window.setVisible(false);