@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; }
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()); }
/** * This method installs the desktop manager for the JDesktopPane. */ protected void installDesktopManager() { desktopManager = new DefaultDesktopManager(); desktop.setDesktopManager(desktopManager); }
protected DesktopManager createDesktopManager() { return new DefaultDesktopManager(); }
/** * 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(); }