if( desktopPanel.getModelItem() != null )
modelItemToInternalFrameMap.put( desktopPanel.getModelItem(), frame );
internalFrameToDesktopPanelMap.put( frame, desktopPanel );
fireDesktopPanelCreated( desktopPanel );
frame.moveToFront();
desktopPanel.getComponent().requestFocusInWindow();
}
currentPanel = desktopPanel;
enableWindowActions();