当前位置: 首页>>代码示例>>Java>>正文


Java DefaultDesktopManager类代码示例

本文整理汇总了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;
}
 
开发者ID:IGNF,项目名称:geoxygene,代码行数:10,代码来源:FloatingMainFrame.java

示例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());
}
 
开发者ID:shannah,项目名称:cn1,代码行数:13,代码来源:BasicDesktopPaneUITest.java

示例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);
}
 
开发者ID:vilie,项目名称:javify,代码行数:9,代码来源:BasicDesktopPaneUI.java

示例4: createDesktopManager

import javax.swing.DefaultDesktopManager; //导入依赖的package包/类
protected DesktopManager createDesktopManager() {
    return new DefaultDesktopManager();
}
 
开发者ID:shannah,项目名称:cn1,代码行数:4,代码来源:BasicInternalFrameUI.java

示例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();
}
 
开发者ID:vilie,项目名称:javify,代码行数:12,代码来源:BasicInternalFrameUI.java


注:本文中的javax.swing.DefaultDesktopManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。