- Timestamp:
- 2019-12-21T03:43:07+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/BasicUploadSettingsPanel.java
r15600 r15604 24 24 import javax.swing.JLabel; 25 25 import javax.swing.JPanel; 26 import javax.swing.event.AncestorEvent; 27 import javax.swing.event.AncestorListener; 26 28 import javax.swing.event.ChangeEvent; 27 29 import javax.swing.event.ChangeListener; … … 116 118 automaticallyAddSource(); 117 119 } 120 pnl.addAncestorListener(new AncestorListener() { 121 @Override 122 public void ancestorAdded(AncestorEvent event) { 123 if (obtainSourceAutomatically.isSelected()) 124 automaticallyAddSource(); 125 } 126 127 @Override 128 public void ancestorRemoved(AncestorEvent event) { 129 // Do nothing 130 } 131 132 @Override 133 public void ancestorMoved(AncestorEvent event) { 134 // Do nothing 135 } 136 }); 118 137 return pnl; 119 138 }
Note:
See TracChangeset
for help on using the changeset viewer.