本文整理汇总了Java中sun.lwawt.macosx.LWCToolkit类的典型用法代码示例。如果您正苦于以下问题:Java LWCToolkit类的具体用法?Java LWCToolkit怎么用?Java LWCToolkit使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LWCToolkit类属于sun.lwawt.macosx包,在下文中一共展示了LWCToolkit类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getScreenMenuBarProperty
import sun.lwawt.macosx.LWCToolkit; //导入依赖的package包/类
static boolean getScreenMenuBarProperty() {
// Do not allow AWT to set the screen menu bar if it's embedded in another UI toolkit
if (LWCToolkit.isEmbedded()) return false;
if (AccessController.doPrivileged(
new GetBooleanAction(AquaLookAndFeel.sPropertyPrefix + "useScreenMenuBar"))) {
return true;
}
if (AccessController.doPrivileged(
new GetBooleanAction(AquaLookAndFeel.sOldPropertyPrefix + "useScreenMenuBar"))) {
System.err.println(AquaLookAndFeel.sOldPropertyPrefix +
"useScreenMenuBar has been deprecated. Please switch to " +
AquaLookAndFeel.sPropertyPrefix + "useScreenMenuBar");
return true;
}
return false;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:AquaMenuBarUI.java
示例2: getScreenMenuBarProperty
import sun.lwawt.macosx.LWCToolkit; //导入依赖的package包/类
public static boolean getScreenMenuBarProperty() {
// Do not allow AWT to set the screen menu bar if it's embedded in another UI toolkit
if (LWCToolkit.isEmbedded()) return false;
if (AccessController.doPrivileged(
new GetBooleanAction(AquaLookAndFeel.sPropertyPrefix + "useScreenMenuBar"))) {
return true;
}
if (AccessController.doPrivileged(
new GetBooleanAction(AquaLookAndFeel.sOldPropertyPrefix + "useScreenMenuBar"))) {
System.err.println(AquaLookAndFeel.sOldPropertyPrefix +
"useScreenMenuBar has been deprecated. Please switch to " +
AquaLookAndFeel.sPropertyPrefix + "useScreenMenuBar");
return true;
}
return false;
}
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:17,代码来源:AquaMenuBarUI.java
示例3: getFontPath
import sun.lwawt.macosx.LWCToolkit; //导入依赖的package包/类
@Override
public String getFontPath(boolean noType1Fonts) {
// In the case of the Cocoa toolkit, since we go through NSFont, we don't need to register /Library/Fonts
Toolkit tk = Toolkit.getDefaultToolkit();
if (tk instanceof HeadlessToolkit) {
tk = ((HeadlessToolkit)tk).getUnderlyingToolkit();
}
if (tk instanceof LWCToolkit) {
return "";
}
// X11 case
return "/Library/Fonts";
}
开发者ID:JetBrains,项目名称:jdk8u_jdk,代码行数:15,代码来源:CFontManager.java
示例4: getFocusRingColorUIResource
import sun.lwawt.macosx.LWCToolkit; //导入依赖的package包/类
public static Color getFocusRingColorUIResource() {
return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.KEYBOARD_FOCUS_COLOR));
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:AquaImageFactory.java
示例5: getSelectionInactiveBackgroundColorUIResource
import sun.lwawt.macosx.LWCToolkit; //导入依赖的package包/类
public static Color getSelectionInactiveBackgroundColorUIResource() {
return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.INACTIVE_SELECTION_BACKGROUND_COLOR));
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:AquaImageFactory.java
示例6: getSelectionInactiveForegroundColorUIResource
import sun.lwawt.macosx.LWCToolkit; //导入依赖的package包/类
public static Color getSelectionInactiveForegroundColorUIResource() {
return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.INACTIVE_SELECTION_FOREGROUND_COLOR));
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:AquaImageFactory.java
注:本文中的sun.lwawt.macosx.LWCToolkit类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论