sun.lwawt.macosx.LWCToolkit Java Examples
The following examples show how to use
sun.lwawt.macosx.LWCToolkit.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AquaMenuBarUI.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
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; }
Example #2
Source File: AquaMenuBarUI.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
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; }
Example #3
Source File: AquaMenuBarUI.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
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; }
Example #4
Source File: AquaMenuBarUI.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
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; }
Example #5
Source File: AquaMenuBarUI.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
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; }
Example #6
Source File: AquaMenuBarUI.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
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; }
Example #7
Source File: AquaMenuBarUI.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
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; }
Example #8
Source File: AquaMenuBarUI.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
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; }
Example #9
Source File: AquaMenuBarUI.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
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; }
Example #10
Source File: AquaMenuBarUI.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
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; }
Example #11
Source File: AquaMenuBarUI.java From hottub with GNU General Public License v2.0 | 6 votes |
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; }
Example #12
Source File: CFontManager.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
@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"; }
Example #13
Source File: AquaImageFactory.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public static Color getFocusRingColorUIResource() { return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.KEYBOARD_FOCUS_COLOR)); }
Example #14
Source File: AquaImageFactory.java From hottub with GNU General Public License v2.0 | 4 votes |
public static Color getSelectionInactiveBackgroundColorUIResource() { return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.INACTIVE_SELECTION_BACKGROUND_COLOR)); }
Example #15
Source File: AquaImageFactory.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public static Color getSelectionInactiveBackgroundColorUIResource() { return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.INACTIVE_SELECTION_BACKGROUND_COLOR)); }
Example #16
Source File: AquaImageFactory.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public static Color getSelectionInactiveForegroundColorUIResource() { return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.INACTIVE_SELECTION_FOREGROUND_COLOR)); }
Example #17
Source File: AquaImageFactory.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public static Color getFocusRingColorUIResource() { return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.KEYBOARD_FOCUS_COLOR)); }
Example #18
Source File: AquaImageFactory.java From hottub with GNU General Public License v2.0 | 4 votes |
public static Color getSelectionInactiveForegroundColorUIResource() { return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.INACTIVE_SELECTION_FOREGROUND_COLOR)); }
Example #19
Source File: AquaImageFactory.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
public static Color getFocusRingColorUIResource() { return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.KEYBOARD_FOCUS_COLOR)); }
Example #20
Source File: AquaImageFactory.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public static Color getSelectionInactiveBackgroundColorUIResource() { return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.INACTIVE_SELECTION_BACKGROUND_COLOR)); }
Example #21
Source File: AquaImageFactory.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public static Color getSelectionInactiveForegroundColorUIResource() { return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.INACTIVE_SELECTION_FOREGROUND_COLOR)); }
Example #22
Source File: AquaImageFactory.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
public static Color getFocusRingColorUIResource() { return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.KEYBOARD_FOCUS_COLOR)); }
Example #23
Source File: AquaImageFactory.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
public static Color getSelectionInactiveBackgroundColorUIResource() { return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.INACTIVE_SELECTION_BACKGROUND_COLOR)); }
Example #24
Source File: AquaImageFactory.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
public static Color getSelectionInactiveForegroundColorUIResource() { return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.INACTIVE_SELECTION_FOREGROUND_COLOR)); }
Example #25
Source File: AquaImageFactory.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
public static Color getFocusRingColorUIResource() { return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.KEYBOARD_FOCUS_COLOR)); }
Example #26
Source File: AquaImageFactory.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
public static Color getSelectionInactiveBackgroundColorUIResource() { return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.INACTIVE_SELECTION_BACKGROUND_COLOR)); }
Example #27
Source File: AquaImageFactory.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
public static Color getSelectionInactiveForegroundColorUIResource() { return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.INACTIVE_SELECTION_FOREGROUND_COLOR)); }
Example #28
Source File: AquaImageFactory.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
public static Color getFocusRingColorUIResource() { return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.KEYBOARD_FOCUS_COLOR)); }
Example #29
Source File: AquaImageFactory.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
public static Color getSelectionInactiveBackgroundColorUIResource() { return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.INACTIVE_SELECTION_BACKGROUND_COLOR)); }
Example #30
Source File: AquaImageFactory.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
public static Color getSelectionInactiveForegroundColorUIResource() { return new SystemColorProxy(LWCToolkit.getAppleColor(LWCToolkit.INACTIVE_SELECTION_FOREGROUND_COLOR)); }