8046239: Build failure in 9-client on all non-Windows platforms

Reviewed-by: anthony, serb, alexp
This commit is contained in:
Alexey Ivanov 2014-06-09 18:10:49 +04:00
parent 5ecd91e84a
commit 48b2a7c0c7
2 changed files with 5 additions and 2 deletions

View File

@ -52,7 +52,6 @@ import javax.swing.text.JTextComponent;
import sun.awt.image.SunWritableRaster;
import sun.awt.windows.ThemeReader;
import sun.awt.windows.WToolkit;
import sun.security.action.GetPropertyAction;
import sun.swing.CachedPainter;
@ -100,7 +99,7 @@ class XPStyle {
if (themeActive == null) {
Toolkit toolkit = Toolkit.getDefaultToolkit();
themeActive =
(Boolean)toolkit.getDesktopProperty(WToolkit.XPSTYLE_THEME_ACTIVE);
(Boolean)toolkit.getDesktopProperty("win.xpstyle.themeActive");
if (themeActive == null) {
themeActive = Boolean.FALSE;
}

View File

@ -45,6 +45,10 @@ public final class ThemeReader {
return false;
}
public static boolean isXPStyleEnabled() {
return false;
}
public static void paintBackground(int[] buffer, String widget,
int part, int state, int x, int y, int w, int h, int stride) {
}