Changeset 17060 in josm
- Timestamp:
- 2020-09-25T16:40:59+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/preferences
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/display/ColorPreference.java
r16960 r17060 60 60 import org.openstreetmap.josm.tools.ColorHelper; 61 61 import org.openstreetmap.josm.tools.GBC; 62 import org.openstreetmap.josm.tools.ImageProvider; 62 63 import org.openstreetmap.josm.tools.I18n; 63 64 … … 264 265 setColors(Preferences.main().getAllNamedColors()); 265 266 266 colorEdit = new JButton(tr("Choose") );267 colorEdit = new JButton(tr("Choose"), ImageProvider.get("colorchooser", ImageProvider.ImageSizes.SMALLICON)); 267 268 colorEdit.addActionListener(e -> { 268 269 int sel = colors.getSelectedRow(); … … 278 279 } 279 280 }); 280 defaultSet = new JButton(tr("Reset to default") );281 defaultSet = new JButton(tr("Reset to default"), ImageProvider.get("undo", ImageProvider.ImageSizes.SMALLICON)); 281 282 defaultSet.addActionListener(e -> { 282 283 int sel = colors.getSelectedRow(); … … 287 288 } 288 289 }); 289 JButton defaultAll = new JButton(tr("Set all to default") );290 JButton defaultAll = new JButton(tr("Set all to default"), ImageProvider.get("undo", ImageProvider.ImageSizes.SMALLICON)); 290 291 defaultAll.addActionListener(e -> { 291 292 List<ColorEntry> data = tableModel.getData(); … … 298 299 tableModel.fireTableDataChanged(); 299 300 }); 300 remove = new JButton(tr("Remove") );301 remove = new JButton(tr("Remove"), ImageProvider.get("dialogs/delete", ImageProvider.ImageSizes.SMALLICON)); 301 302 remove.addActionListener(e -> { 302 303 int sel = colors.getSelectedRow(); -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java
r16960 r17060 43 43 import org.openstreetmap.josm.gui.util.TableHelper; 44 44 import org.openstreetmap.josm.tools.GBC; 45 import org.openstreetmap.josm.tools.ImageProvider; 45 46 import org.openstreetmap.josm.tools.Logging; 46 47 … … 213 214 JPanel buttonPanel = new JPanel(new FlowLayout()); 214 215 215 JButton add = new JButton(tr("Add") );216 JButton add = new JButton(tr("Add"), ImageProvider.get("dialogs/add", ImageProvider.ImageSizes.SMALLICON)); 216 217 buttonPanel.add(add, GBC.std().insets(0, 5, 0, 0)); 217 218 add.addActionListener(e -> model.addRow(new OffsetBookmark(ProjectionRegistry.getProjection().toCode(), "", "", "", 0, 0))); 218 219 219 JButton delete = new JButton(tr("Delete") );220 JButton delete = new JButton(tr("Delete"), ImageProvider.get("dialogs/delete", ImageProvider.ImageSizes.SMALLICON)); 220 221 buttonPanel.add(delete, GBC.std().insets(0, 5, 0, 0)); 221 222 delete.addActionListener(e -> {
Note:
See TracChangeset
for help on using the changeset viewer.