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


Java DesktopPeer类代码示例

本文整理汇总了Java中java.awt.peer.DesktopPeer的典型用法代码示例。如果您正苦于以下问题:Java DesktopPeer类的具体用法?Java DesktopPeer怎么用?Java DesktopPeer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


DesktopPeer类属于java.awt.peer包,在下文中一共展示了DesktopPeer类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getDesktop

import java.awt.peer.DesktopPeer; //导入依赖的package包/类
/**
 * @return
 */
public static DesktopPeer getDesktop()
{
  //  check if we are under Gnome or KDE or anything else
  String desktopSession = System.getenv("GNOME_DESKTOP_SESSION_ID");
  if (desktopSession == null)
    {
      desktopSession = System.getenv("KDE_FULL_SESSION");
      if (desktopSession != null)
        return kde;
    }
  else
    {
      return gnome;
    }

  // revert to this class for default values
  return classpath;
}
 
开发者ID:vilie,项目名称:javify,代码行数:22,代码来源:ClasspathDesktopPeer.java

示例2: getDesktop

import java.awt.peer.DesktopPeer; //导入依赖的package包/类
/**
 * @return
 */
public static DesktopPeer getDesktop()
{
  //  check if we are under Gnome or KDE or anything else
  String desktopSession = System.getenv("GNOME_DESKTOP_SESSION_ID");
  if (desktopSession == null)
    { 
      desktopSession = System.getenv("KDE_FULL_SESSION");
      if (desktopSession != null)
        return kde;
    }
  else
    {
      return gnome;
    }
  
  // revert to this class for default values
  return classpath;
}
 
开发者ID:nmldiegues,项目名称:jvm-stm,代码行数:22,代码来源:ClasspathDesktopPeer.java

示例3: createDesktopPeer

import java.awt.peer.DesktopPeer; //导入依赖的package包/类
protected DesktopPeer createDesktopPeer(Desktop target)
  throws HeadlessException
{
  if (GraphicsEnvironment.isHeadless())
    throw new HeadlessException();

  return ClasspathDesktopPeer.getDesktop();
}
 
开发者ID:vilie,项目名称:javify,代码行数:9,代码来源:ClasspathToolkit.java

示例4: createDesktopPeer

import java.awt.peer.DesktopPeer; //导入依赖的package包/类
protected DesktopPeer createDesktopPeer(Desktop target)
  throws HeadlessException
{
  if (GraphicsEnvironment.isHeadless())
    throw new HeadlessException();
  
  return ClasspathDesktopPeer.getDesktop();
}
 
开发者ID:nmldiegues,项目名称:jvm-stm,代码行数:9,代码来源:ClasspathToolkit.java

示例5: createDesktopPeer

import java.awt.peer.DesktopPeer; //导入依赖的package包/类
@Override
protected DesktopPeer createDesktopPeer(Desktop target) throws HeadlessException {
    throw new UnsupportedOperationException("Not supported yet.");
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:UtilitiesTest.java

示例6: createDesktopPeer

import java.awt.peer.DesktopPeer; //导入依赖的package包/类
@Override
protected DesktopPeer createDesktopPeer(Desktop target) throws HeadlessException {
    return new GDesktopPeer();
}
 
开发者ID:Danielku15,项目名称:GhostAWT,代码行数:5,代码来源:GhostToolkit.java

示例7: createDesktopPeer

import java.awt.peer.DesktopPeer; //导入依赖的package包/类
/**
 *
 * @param target
 * @return
 * @throws HeadlessException
 */
protected abstract DesktopPeer createDesktopPeer(Desktop target)
  throws HeadlessException;
 
开发者ID:vilie,项目名称:javify,代码行数:9,代码来源:Toolkit.java

示例8: createDesktopPeer

import java.awt.peer.DesktopPeer; //导入依赖的package包/类
/**
 * 
 * @param target
 * @return
 * @throws HeadlessException
 */
protected abstract DesktopPeer createDesktopPeer(Desktop target)
  throws HeadlessException;
 
开发者ID:nmldiegues,项目名称:jvm-stm,代码行数:9,代码来源:Toolkit.java


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