Changeset 17681 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2021-03-28T17:17:15+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r17679 r17681 1047 1047 1048 1048 static void applyWorkarounds() { 1049 final String laf = UIManager.getLookAndFeel().getID(); 1050 final int javaVersion = Utils.getJavaVersion(); 1049 1051 // Workaround for JDK-8180379: crash on Windows 10 1703 with Windows L&F and java < 8u141 / 9+172 1050 1052 // To remove during Java 9 migration … … 1055 1057 if (build != null) { 1056 1058 final int currentBuild = Integer.parseInt(build); 1057 final int javaVersion = Utils.getJavaVersion();1058 1059 final int javaUpdate = Utils.getJavaUpdate(); 1059 1060 final int javaBuild = Utils.getJavaBuild(); … … 1070 1071 Logging.log(Logging.LEVEL_ERROR, null, e); 1071 1072 } 1072 } else if (PlatformManager.isPlatformOsx() && Utils.getJavaVersion()< 16) {1073 } else if (PlatformManager.isPlatformOsx() && javaVersion < 16) { 1073 1074 // Workaround for JDK-8251377: JTabPanel active tab is unreadable in Big Sur, see #20075 1074 1075 // os.version will return 10.16, or 11.0 depending on environment variable 1075 1076 // https://twitter.com/BriceDutheil/status/1330926649269956612 1076 final String laf = UIManager.getLookAndFeel().getID();1077 1077 final String macOSVersion = getSystemProperty("os.version"); 1078 1078 if ((laf.contains("Mac") || laf.contains("Aqua")) … … 1080 1080 UIManager.put("TabbedPane.foreground", Color.BLACK); 1081 1081 } 1082 } 1083 // Workaround for JDK-8262085 1084 if ("Metal".equals(laf) && javaVersion >= 11 && javaVersion < 17) { 1085 UIManager.put("ToolTipUI", JosmMetalToolTipUI.class.getCanonicalName()); 1082 1086 } 1083 1087 }
Note:
See TracChangeset
for help on using the changeset viewer.