src/windows/classes/sun/awt/windows/ThemeReader.java
Print this page
@@ -59,10 +59,12 @@
private static final ReadWriteLock readWriteLock =
new ReentrantReadWriteLock();
private static final Lock readLock = readWriteLock.readLock();
private static final Lock writeLock = readWriteLock.writeLock();
+ static volatile boolean xpStyleEnabled;
+
static void flush() {
writeLock.lock();
try {
// Close old themes.
for (Long value : widgetToTheme.values()) {
@@ -74,10 +76,14 @@
}
}
public static native boolean isThemed();
+ public static boolean isXPStyleEnabled() {
+ return xpStyleEnabled;
+ }
+
// this should be called only with writeLock held
private static Long getThemeImpl(String widget) {
Long theme = widgetToTheme.get(widget);
if (theme == null) {
int i = widget.indexOf("::");