}
}
- private static boolean isJava9orLater;
- static {
- try {
- // Java 9 version-String Scheme: http://openjdk.java.net/jeps/223
- StringTokenizer st = new StringTokenizer(System.getProperty("java.version"), "._-+");
- int majorVersion = Integer.parseInt(st.nextToken());
- isJava9orLater = majorVersion >= 9;
- } catch (Exception e) {
- // Java 8 or older
- }
- }
+ private static boolean isJava9orLater = true;
+// static {
+// try {
+// // Java 9 version-String Scheme: http://openjdk.java.net/jeps/223
+// StringTokenizer st = new StringTokenizer(System.getProperty("java.version"), "._-+");
+// int majorVersion = Integer.parseInt(st.nextToken());
+// isJava9orLater = majorVersion >= 9;
+// } catch (Exception e) {
+// // Java 8 or older
+// }
+// }
// /** Cache.
// */
c.getPreferredSize(); // To defeat a bug where the minimum size is different before and after the first call to getPreferredSize();
prefCalled = true;
}
+
return c.getMinimumSize().width;
}
@Override