Changeset 13036 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-10-25T20:34:20+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/MapPaintDialog.java
r12846 r13036 27 27 28 28 import javax.swing.AbstractAction; 29 import javax.swing.DefaultButtonModel;30 29 import javax.swing.DefaultListSelectionModel; 31 30 import javax.swing.ImageIcon; … … 39 38 import javax.swing.JTabbedPane; 40 39 import javax.swing.JTable; 40 import javax.swing.JToggleButton.ToggleButtonModel; 41 41 import javax.swing.ListSelectionModel; 42 42 import javax.swing.SingleSelectionModel; … … 126 126 wfLabel.setLabelFor(cbWireframe); 127 127 128 cbWireframe.setModel(new DefaultButtonModel() {128 cbWireframe.setModel(new ToggleButtonModel() { 129 129 @Override 130 130 public void setSelected(boolean b) { -
trunk/src/org/openstreetmap/josm/gui/widgets/QuadStateCheckBox.java
r12833 r13036 133 133 * It previously only implemented (and still could) the {@code ButtonModel} interface. 134 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 10 migration.136 * See also https://bugs.openjdk.java.net/browse/JDK-8182695 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 137 */ 138 138 private final class QuadStateDecorator extends ToggleButtonModel {
Note:
See TracChangeset
for help on using the changeset viewer.