Java Code Examples for java.awt.SystemColor#window()
The following examples show how to use
java.awt.SystemColor#window() .
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: BrowserConsoleLogger.java From netbeans with Apache License 2.0 | 6 votes |
private void setIOColors() { if (IOColors.isSupported(io) && IOColorPrint.isSupported(io)) { Color colorStd = IOColors.getColor(io, IOColors.OutputType.OUTPUT); //Color colorErr = IOColors.getColor(io, IOColors.OutputType.ERROR); Color background = UIManager.getDefaults().getColor("nb.output.background"); // NOI18N if (background == null) { background = SystemColor.window; } colorStdBrighter = shiftTowards(colorStd, background); //colorErrBrighter = shiftTowards(colorErr, background); Color foreground = UIManager.getDefaults().getColor("nb.output.foreground"); // NOI18N if (foreground == null) { foreground = SystemColor.textText; } IOColors.setColor(io, IOColors.OutputType.INPUT, shiftTowards(foreground, Color.GREEN)); } }
Example 2
Source File: XComponentPeer.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
/** * Returns an array of Colors similar to getGUIcolors(), but using the * System colors. This is useful if pieces of a Component (such as * the integrated scrollbars of a List) should retain the System color * instead of the background color set by Component.setBackground(). */ static Color[] getSystemColors() { if (systemColors == null) { systemColors = new Color[4]; systemColors[BACKGROUND_COLOR] = SystemColor.window; systemColors[HIGHLIGHT_COLOR] = SystemColor.controlLtHighlight; systemColors[SHADOW_COLOR] = SystemColor.controlShadow; systemColors[FOREGROUND_COLOR] = SystemColor.windowText; } return systemColors; }
Example 3
Source File: XComponentPeer.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Returns an array of Colors similar to getGUIcolors(), but using the * System colors. This is useful if pieces of a Component (such as * the integrated scrollbars of a List) should retain the System color * instead of the background color set by Component.setBackground(). */ static Color[] getSystemColors() { if (systemColors == null) { systemColors = new Color[4]; systemColors[BACKGROUND_COLOR] = SystemColor.window; systemColors[HIGHLIGHT_COLOR] = SystemColor.controlLtHighlight; systemColors[SHADOW_COLOR] = SystemColor.controlShadow; systemColors[FOREGROUND_COLOR] = SystemColor.windowText; } return systemColors; }
Example 4
Source File: XComponentPeer.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Returns an array of Colors similar to getGUIcolors(), but using the * System colors. This is useful if pieces of a Component (such as * the integrated scrollbars of a List) should retain the System color * instead of the background color set by Component.setBackground(). */ static Color[] getSystemColors() { if (systemColors == null) { systemColors = new Color[4]; systemColors[BACKGROUND_COLOR] = SystemColor.window; systemColors[HIGHLIGHT_COLOR] = SystemColor.controlLtHighlight; systemColors[SHADOW_COLOR] = SystemColor.controlShadow; systemColors[FOREGROUND_COLOR] = SystemColor.windowText; } return systemColors; }
Example 5
Source File: XComponentPeer.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Returns an array of Colors similar to getGUIcolors(), but using the * System colors. This is useful if pieces of a Component (such as * the integrated scrollbars of a List) should retain the System color * instead of the background color set by Component.setBackground(). */ static Color[] getSystemColors() { if (systemColors == null) { systemColors = new Color[4]; systemColors[BACKGROUND_COLOR] = SystemColor.window; systemColors[HIGHLIGHT_COLOR] = SystemColor.controlLtHighlight; systemColors[SHADOW_COLOR] = SystemColor.controlShadow; systemColors[FOREGROUND_COLOR] = SystemColor.windowText; } return systemColors; }
Example 6
Source File: XComponentPeer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Returns an array of Colors similar to getGUIcolors(), but using the * System colors. This is useful if pieces of a Component (such as * the integrated scrollbars of a List) should retain the System color * instead of the background color set by Component.setBackground(). */ static Color[] getSystemColors() { if (systemColors == null) { systemColors = new Color[4]; systemColors[BACKGROUND_COLOR] = SystemColor.window; systemColors[HIGHLIGHT_COLOR] = SystemColor.controlLtHighlight; systemColors[SHADOW_COLOR] = SystemColor.controlShadow; systemColors[FOREGROUND_COLOR] = SystemColor.windowText; } return systemColors; }
Example 7
Source File: XComponentPeer.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Returns an array of Colors similar to getGUIcolors(), but using the * System colors. This is useful if pieces of a Component (such as * the integrated scrollbars of a List) should retain the System color * instead of the background color set by Component.setBackground(). */ static Color[] getSystemColors() { if (systemColors == null) { systemColors = new Color[4]; systemColors[BACKGROUND_COLOR] = SystemColor.window; systemColors[HIGHLIGHT_COLOR] = SystemColor.controlLtHighlight; systemColors[SHADOW_COLOR] = SystemColor.controlShadow; systemColors[FOREGROUND_COLOR] = SystemColor.windowText; } return systemColors; }
Example 8
Source File: XComponentPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Returns an array of Colors similar to getGUIcolors(), but using the * System colors. This is useful if pieces of a Component (such as * the integrated scrollbars of a List) should retain the System color * instead of the background color set by Component.setBackground(). */ static Color[] getSystemColors() { if (systemColors == null) { systemColors = new Color[4]; systemColors[BACKGROUND_COLOR] = SystemColor.window; systemColors[HIGHLIGHT_COLOR] = SystemColor.controlLtHighlight; systemColors[SHADOW_COLOR] = SystemColor.controlShadow; systemColors[FOREGROUND_COLOR] = SystemColor.windowText; } return systemColors; }
Example 9
Source File: XComponentPeer.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Returns an array of Colors similar to getGUIcolors(), but using the * System colors. This is useful if pieces of a Component (such as * the integrated scrollbars of a List) should retain the System color * instead of the background color set by Component.setBackground(). */ static Color[] getSystemColors() { if (systemColors == null) { systemColors = new Color[4]; systemColors[BACKGROUND_COLOR] = SystemColor.window; systemColors[HIGHLIGHT_COLOR] = SystemColor.controlLtHighlight; systemColors[SHADOW_COLOR] = SystemColor.controlShadow; systemColors[FOREGROUND_COLOR] = SystemColor.windowText; } return systemColors; }
Example 10
Source File: XComponentPeer.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Returns an array of Colors similar to getGUIcolors(), but using the * System colors. This is useful if pieces of a Component (such as * the integrated scrollbars of a List) should retain the System color * instead of the background color set by Component.setBackground(). */ static Color[] getSystemColors() { if (systemColors == null) { systemColors = new Color[4]; systemColors[BACKGROUND_COLOR] = SystemColor.window; systemColors[HIGHLIGHT_COLOR] = SystemColor.controlLtHighlight; systemColors[SHADOW_COLOR] = SystemColor.controlShadow; systemColors[FOREGROUND_COLOR] = SystemColor.windowText; } return systemColors; }
Example 11
Source File: XComponentPeer.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Returns an array of Colors similar to getGUIcolors(), but using the * System colors. This is useful if pieces of a Component (such as * the integrated scrollbars of a List) should retain the System color * instead of the background color set by Component.setBackground(). */ static Color[] getSystemColors() { if (systemColors == null) { systemColors = new Color[4]; systemColors[BACKGROUND_COLOR] = SystemColor.window; systemColors[HIGHLIGHT_COLOR] = SystemColor.controlLtHighlight; systemColors[SHADOW_COLOR] = SystemColor.controlShadow; systemColors[FOREGROUND_COLOR] = SystemColor.windowText; } return systemColors; }
Example 12
Source File: XComponentPeer.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * Returns an array of Colors similar to getGUIcolors(), but using the * System colors. This is useful if pieces of a Component (such as * the integrated scrollbars of a List) should retain the System color * instead of the background color set by Component.setBackground(). */ static Color[] getSystemColors() { if (systemColors == null) { systemColors = new Color[4]; systemColors[BACKGROUND_COLOR] = SystemColor.window; systemColors[HIGHLIGHT_COLOR] = SystemColor.controlLtHighlight; systemColors[SHADOW_COLOR] = SystemColor.controlShadow; systemColors[FOREGROUND_COLOR] = SystemColor.windowText; } return systemColors; }
Example 13
Source File: XComponentPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Returns an array of Colors similar to getGUIcolors(), but using the * System colors. This is useful if pieces of a Component (such as * the integrated scrollbars of a List) should retain the System color * instead of the background color set by Component.setBackground(). */ static Color[] getSystemColors() { if (systemColors == null) { systemColors = new Color[4]; systemColors[BACKGROUND_COLOR] = SystemColor.window; systemColors[HIGHLIGHT_COLOR] = SystemColor.controlLtHighlight; systemColors[SHADOW_COLOR] = SystemColor.controlShadow; systemColors[FOREGROUND_COLOR] = SystemColor.windowText; } return systemColors; }
Example 14
Source File: XComponentPeer.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
/** * Returns an array of Colors similar to getGUIcolors(), but using the * System colors. This is useful if pieces of a Component (such as * the integrated scrollbars of a List) should retain the System color * instead of the background color set by Component.setBackground(). */ static Color[] getSystemColors() { if (systemColors == null) { systemColors = new Color[4]; systemColors[BACKGROUND_COLOR] = SystemColor.window; systemColors[HIGHLIGHT_COLOR] = SystemColor.controlLtHighlight; systemColors[SHADOW_COLOR] = SystemColor.controlShadow; systemColors[FOREGROUND_COLOR] = SystemColor.windowText; } return systemColors; }