- Timestamp:
- 2021-09-12T02:57:52+02:00 (3 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/PrimitiveRenderer.java
r16073 r18215 48 48 public Component getListCellRendererComponent(JList<? extends IPrimitive> list, IPrimitive value, int index, 49 49 boolean isSelected, boolean cellHasFocus) { 50 Component def = defaultListCellRenderer.getListCellRendererComponent(list, null, index, isSelected, cellHasFocus);50 Component def = defaultListCellRenderer.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); 51 51 return renderer(def, value, list.getModel().getSize() > 1000); 52 52 } -
trunk/src/org/openstreetmap/josm/gui/SplashScreen.java
r18211 r18215 238 238 final MeasurableTask task = new MeasurableTask(title); 239 239 tasks.add(task); 240 listener.stateChanged(n ull);240 listener.stateChanged(new ChangeEvent(this)); 241 241 } 242 242 } … … 267 267 latestSubtask = new SplashProgressMonitor(title, listener); 268 268 tasks.add(latestSubtask); 269 listener.stateChanged(n ull);269 listener.stateChanged(new ChangeEvent(this)); 270 270 } 271 271 … … 300 300 taskOptional.ifPresent(task -> { 301 301 ((MeasurableTask) task).finish(); 302 listener.stateChanged(n ull);302 listener.stateChanged(new ChangeEvent(this)); 303 303 }); 304 304 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
r18208 r18215 801 801 focus = addFocusAdapter(autocomplete, DEFAULT_AC_ITEM_COMPARATOR); 802 802 // fire focus event in advance or otherwise the popup list will be too small at first 803 focus.focusGained(n ull);803 focus.focusGained(new FocusEvent(this, FocusEvent.FOCUS_GAINED)); 804 804 805 805 addUpdateIconListener(); … … 974 974 keys.setSelectedItem(t.getKey()); 975 975 // fix #7951, #8298 - update list of values before setting value (?) 976 focus.focusGained(n ull);976 focus.focusGained(new FocusEvent(AddTagsDialog.this, FocusEvent.FOCUS_GAINED)); 977 977 values.setSelectedItem(t.getValue()); 978 978 selectValuesCombobox(); -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/DownloadAlongPanel.java
r16155 r18215 14 14 import javax.swing.JSpinner; 15 15 import javax.swing.SpinnerNumberModel; 16 import javax.swing.event.ChangeEvent; 16 17 import javax.swing.event.ChangeListener; 17 18 … … 161 162 cbDownloadGpxData.addChangeListener(listener); 162 163 cbDownloadOsmData.addChangeListener(listener); 163 listener.stateChanged(n ull);164 listener.stateChanged(new ChangeEvent(this)); 164 165 } 165 166
Note:
See TracChangeset
for help on using the changeset viewer.