- Timestamp:
- 2019-08-07T01:13:11+02:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/MapPaintDialog.java
r14153 r15287 27 27 28 28 import javax.swing.AbstractAction; 29 import javax.swing.DefaultButtonModel; 29 30 import javax.swing.DefaultListSelectionModel; 30 31 import javax.swing.ImageIcon; … … 38 39 import javax.swing.JTabbedPane; 39 40 import javax.swing.JTable; 40 import javax.swing.JToggleButton.ToggleButtonModel;41 41 import javax.swing.ListSelectionModel; 42 42 import javax.swing.SingleSelectionModel; … … 125 125 wfLabel.setLabelFor(cbWireframe); 126 126 127 cbWireframe.setModel(new ToggleButtonModel() {127 cbWireframe.setModel(new DefaultButtonModel() { 128 128 @Override 129 129 public void setSelected(boolean b) { -
trunk/src/org/openstreetmap/josm/gui/widgets/NativeFileChooser.java
r14153 r15287 4 4 import java.awt.Component; 5 5 import java.awt.FileDialog; 6 import java.awt.Frame;7 6 import java.io.File; 8 7 import java.io.FilenameFilter; … … 35 34 */ 36 35 public NativeFileChooser(File file) { 37 fileDialog = new FileDialog( (Frame)MainApplication.getMainFrame());36 fileDialog = new FileDialog(MainApplication.getMainFrame()); 38 37 if (file != null) { 39 38 fileDialog.setDirectory(file.getAbsolutePath()); -
trunk/src/org/openstreetmap/josm/gui/widgets/QuadStateCheckBox.java
r13036 r15287 131 131 /** 132 132 * Button model for the {@code QuadStateCheckBox}. 133 * It previously only implemented (and still could) the {@code ButtonModel} interface. 134 * But because of JDK-8182577 (Java 9 regression) it now extends {@code ToggleButtonModel} as a workaround. 135 * The previous implementation can be restored after Java 9 EOL (March 2018). 136 * See also https://bugs.openjdk.java.net/browse/JDK-8182695 - https://bugs.openjdk.java.net/browse/JDK-8182577 137 */ 138 private final class QuadStateDecorator extends ToggleButtonModel { 133 */ 134 private final class QuadStateDecorator implements ButtonModel { 139 135 private final ButtonModel other; 140 136 private String propertyText;
Note:
See TracChangeset
for help on using the changeset viewer.