本文整理汇总了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;
}
示例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;
}
示例3: createDesktopPeer
import java.awt.peer.DesktopPeer; //导入依赖的package包/类
protected DesktopPeer createDesktopPeer(Desktop target)
throws HeadlessException
{
if (GraphicsEnvironment.isHeadless())
throw new HeadlessException();
return ClasspathDesktopPeer.getDesktop();
}
示例4: createDesktopPeer
import java.awt.peer.DesktopPeer; //导入依赖的package包/类
protected DesktopPeer createDesktopPeer(Desktop target)
throws HeadlessException
{
if (GraphicsEnvironment.isHeadless())
throw new HeadlessException();
return ClasspathDesktopPeer.getDesktop();
}
示例5: createDesktopPeer
import java.awt.peer.DesktopPeer; //导入依赖的package包/类
@Override
protected DesktopPeer createDesktopPeer(Desktop target) throws HeadlessException {
throw new UnsupportedOperationException("Not supported yet.");
}
示例6: createDesktopPeer
import java.awt.peer.DesktopPeer; //导入依赖的package包/类
@Override
protected DesktopPeer createDesktopPeer(Desktop target) throws HeadlessException {
return new GDesktopPeer();
}
示例7: createDesktopPeer
import java.awt.peer.DesktopPeer; //导入依赖的package包/类
/**
*
* @param target
* @return
* @throws HeadlessException
*/
protected abstract DesktopPeer createDesktopPeer(Desktop target)
throws HeadlessException;
示例8: createDesktopPeer
import java.awt.peer.DesktopPeer; //导入依赖的package包/类
/**
*
* @param target
* @return
* @throws HeadlessException
*/
protected abstract DesktopPeer createDesktopPeer(Desktop target)
throws HeadlessException;