Java 类javax.swing.DefaultDesktopManager 实例源码

项目:geoxygene    文件:FloatingMainFrame.java   
@Override
JComponent createNewDesktop() {
  JDesktopPane newDesktop = new JDesktopPane();
  newDesktop.setDesktopManager(new DefaultDesktopManager());
  newDesktop.addContainerListener(this.getMode());
  logger.debug("Add event in Menu");
  newDesktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
  return newDesktop;
}
项目:cn1    文件:BasicDesktopPaneUITest.java   
public void testUninstallDesktopManager() {
    ui.installDesktopManager();
    ui.uninstallDesktopManager();
    assertNotNull(desktop.getDesktopManager());
    DefaultDesktopManager m = new DefaultDesktopManager();
    desktop.setDesktopManager(m);
    ui.uninstallDesktopManager();
    assertSame(m, desktop.getDesktopManager());
    desktop.setDesktopManager(null);
    ui.uninstallDesktopManager();
    assertNotNull(desktop.getDesktopManager());
}
项目:freeVM    文件:BasicDesktopPaneUITest.java   
public void testUninstallDesktopManager() {
    ui.installDesktopManager();
    ui.uninstallDesktopManager();
    assertNotNull(desktop.getDesktopManager());
    DefaultDesktopManager m = new DefaultDesktopManager();
    desktop.setDesktopManager(m);
    ui.uninstallDesktopManager();
    assertSame(m, desktop.getDesktopManager());
    desktop.setDesktopManager(null);
    ui.uninstallDesktopManager();
    assertNotNull(desktop.getDesktopManager());
}
项目:freeVM    文件:BasicDesktopPaneUITest.java   
public void testUninstallDesktopManager() {
    ui.installDesktopManager();
    ui.uninstallDesktopManager();
    assertNotNull(desktop.getDesktopManager());
    DefaultDesktopManager m = new DefaultDesktopManager();
    desktop.setDesktopManager(m);
    ui.uninstallDesktopManager();
    assertSame(m, desktop.getDesktopManager());
    desktop.setDesktopManager(null);
    ui.uninstallDesktopManager();
    assertNotNull(desktop.getDesktopManager());
}
项目:javify    文件:BasicDesktopPaneUI.java   
/**
 * This method installs the desktop manager for the JDesktopPane.
 */
protected void installDesktopManager()
{
  desktopManager = new DefaultDesktopManager();
  desktop.setDesktopManager(desktopManager);
}
项目:jvm-stm    文件:BasicDesktopPaneUI.java   
/**
 * This method installs the desktop manager for the JDesktopPane.
 */
protected void installDesktopManager()
{
  desktopManager = new DefaultDesktopManager();
  desktop.setDesktopManager(desktopManager);
}
项目:cn1    文件:BasicInternalFrameUI.java   
protected DesktopManager createDesktopManager() {
    return new DefaultDesktopManager();
}
项目:JamVM-PH    文件:BasicDesktopPaneUI.java   
/**
 * This method installs the desktop manager for the JDesktopPane.
 */
protected void installDesktopManager()
{
  desktopManager = new DefaultDesktopManager();
  desktop.setDesktopManager(desktopManager);
}
项目:classpath    文件:BasicDesktopPaneUI.java   
/**
 * This method installs the desktop manager for the JDesktopPane.
 */
protected void installDesktopManager()
{
  desktopManager = new DefaultDesktopManager();
  desktop.setDesktopManager(desktopManager);
}
项目:freeVM    文件:BasicInternalFrameUI.java   
protected DesktopManager createDesktopManager() {
    return new DefaultDesktopManager();
}
项目:freeVM    文件:BasicInternalFrameUI.java   
protected DesktopManager createDesktopManager() {
    return new DefaultDesktopManager();
}
项目:javify    文件:BasicInternalFrameUI.java   
/**
 * This method returns a default DesktopManager that can be used with this
 * JInternalFrame.
 *
 * @return A default DesktopManager that can be used with this
 *         JInternalFrame.
 */
protected DesktopManager createDesktopManager()
{
  return new DefaultDesktopManager();
}
项目:jvm-stm    文件:BasicInternalFrameUI.java   
/**
 * This method returns a default DesktopManager that can be used with this
 * JInternalFrame.
 *
 * @return A default DesktopManager that can be used with this
 *         JInternalFrame.
 */
protected DesktopManager createDesktopManager()
{
  return new DefaultDesktopManager();
}
项目:JamVM-PH    文件:BasicInternalFrameUI.java   
/**
 * This method returns a default DesktopManager that can be used with this
 * JInternalFrame.
 *
 * @return A default DesktopManager that can be used with this
 *         JInternalFrame.
 */
protected DesktopManager createDesktopManager()
{
  return new DefaultDesktopManager();
}
项目:classpath    文件:BasicInternalFrameUI.java   
/**
 * This method returns a default DesktopManager that can be used with this
 * JInternalFrame.
 *
 * @return A default DesktopManager that can be used with this
 *         JInternalFrame.
 */
protected DesktopManager createDesktopManager()
{
  return new DefaultDesktopManager();
}