Java Code Examples for sun.awt.SunToolkit#getSunAwtNoerasebackground()
The following examples show how to use
sun.awt.SunToolkit#getSunAwtNoerasebackground() .
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: WCanvasPeer.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example 2
Source File: WCanvasPeer.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example 3
Source File: WCanvasPeer.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example 4
Source File: WCanvasPeer.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example 5
Source File: WCanvasPeer.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example 6
Source File: WCanvasPeer.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example 7
Source File: WCanvasPeer.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example 8
Source File: WCanvasPeer.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example 9
Source File: WCanvasPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example 10
Source File: WCanvasPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
@Override void initialize() { eraseBackground = !SunToolkit.getSunAwtNoerasebackground(); boolean eraseBackgroundOnResize = SunToolkit.getSunAwtErasebackgroundonresize(); // Optimization: the default value in the native code is true, so we // call setNativeBackgroundErase only when the value changes to false if (!PaintEventDispatcher.getPaintEventDispatcher(). shouldDoNativeBackgroundErase((Component)target)) { eraseBackground = false; } setNativeBackgroundErase(eraseBackground, eraseBackgroundOnResize); super.initialize(); Color bg = ((Component)target).getBackground(); if (bg != null) { setBackground(bg); } }
Example 11
Source File: XCanvasPeer.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); if (SunToolkit.getSunAwtNoerasebackground()) { disableBackgroundErase(); } }
Example 12
Source File: XCanvasPeer.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); if (SunToolkit.getSunAwtNoerasebackground()) { disableBackgroundErase(); } }
Example 13
Source File: XCanvasPeer.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); if (SunToolkit.getSunAwtNoerasebackground()) { disableBackgroundErase(); } }
Example 14
Source File: XCanvasPeer.java From hottub with GNU General Public License v2.0 | 4 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); if (SunToolkit.getSunAwtNoerasebackground()) { disableBackgroundErase(); } }
Example 15
Source File: XCanvasPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); if (SunToolkit.getSunAwtNoerasebackground()) { disableBackgroundErase(); } }
Example 16
Source File: XCanvasPeer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); if (SunToolkit.getSunAwtNoerasebackground()) { disableBackgroundErase(); } }
Example 17
Source File: XCanvasPeer.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); if (SunToolkit.getSunAwtNoerasebackground()) { disableBackgroundErase(); } }
Example 18
Source File: XCanvasPeer.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); if (SunToolkit.getSunAwtNoerasebackground()) { disableBackgroundErase(); } }
Example 19
Source File: XCanvasPeer.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); if (SunToolkit.getSunAwtNoerasebackground()) { disableBackgroundErase(); } }
Example 20
Source File: XCanvasPeer.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); if (SunToolkit.getSunAwtNoerasebackground()) { disableBackgroundErase(); } }