本文整理汇总了Java中javax.swing.DefaultDesktopManager类的典型用法代码示例。如果您正苦于以下问题:Java DefaultDesktopManager类的具体用法?Java DefaultDesktopManager怎么用?Java DefaultDesktopManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DefaultDesktopManager类属于javax.swing包,在下文中一共展示了DefaultDesktopManager类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createNewDesktop
import javax.swing.DefaultDesktopManager; //导入依赖的package包/类
@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;
}
示例2: testUninstallDesktopManager
import javax.swing.DefaultDesktopManager; //导入依赖的package包/类
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());
}
示例3: installDesktopManager
import javax.swing.DefaultDesktopManager; //导入依赖的package包/类
/**
* This method installs the desktop manager for the JDesktopPane.
*/
protected void installDesktopManager()
{
desktopManager = new DefaultDesktopManager();
desktop.setDesktopManager(desktopManager);
}
示例4: createDesktopManager
import javax.swing.DefaultDesktopManager; //导入依赖的package包/类
protected DesktopManager createDesktopManager() {
return new DefaultDesktopManager();
}
示例5: createDesktopManager
import javax.swing.DefaultDesktopManager; //导入依赖的package包/类
/**
* 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();
}