本文整理汇总了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;
}
示例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;
}
示例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";
}
示例4: getFocusRingColorUIResource
import sun.lwawt.macosx.LWCToolkit; //导入依赖的package包/类
public static Color getFocusRingColorUIResource() {
return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.KEYBOARD_FOCUS_COLOR));
}
示例5: getSelectionInactiveBackgroundColorUIResource
import sun.lwawt.macosx.LWCToolkit; //导入依赖的package包/类
public static Color getSelectionInactiveBackgroundColorUIResource() {
return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.INACTIVE_SELECTION_BACKGROUND_COLOR));
}
示例6: getSelectionInactiveForegroundColorUIResource
import sun.lwawt.macosx.LWCToolkit; //导入依赖的package包/类
public static Color getSelectionInactiveForegroundColorUIResource() {
return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.INACTIVE_SELECTION_FOREGROUND_COLOR));
}