Changeset 10481 in josm
- Timestamp:
- 2016-06-24T21:28:15+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialog.java
r10035 r10481 14 14 15 15 import javax.swing.AbstractAction; 16 import javax.swing.JButton; 16 17 import javax.swing.JComponent; 17 18 import javax.swing.JDialog; … … 25 26 import org.openstreetmap.josm.data.osm.history.HistoryDataSet; 26 27 import org.openstreetmap.josm.data.osm.history.HistoryDataSetListener; 27 import org.openstreetmap.josm.gui.SideButton;28 28 import org.openstreetmap.josm.gui.help.ContextSensitiveHelpAction; 29 29 import org.openstreetmap.josm.gui.help.HelpUtil; … … 101 101 JPanel pnl = new JPanel(new FlowLayout(FlowLayout.CENTER)); 102 102 103 SideButton btn = newSideButton(new ReloadAction());103 JButton btn = new JButton(new ReloadAction()); 104 104 btn.setName("btn.reload"); 105 105 pnl.add(btn); 106 106 107 btn = new SideButton(closeAction);107 btn = new JButton(closeAction); 108 108 final String closeHistoryBrowserDialogKey = "CloseHistoryBrowserDialog"; 109 109 KeyStroke escapeKey = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0, false); … … 113 113 pnl.add(btn); 114 114 115 btn = new SideButton(new ContextSensitiveHelpAction(ht("/Action/ObjectHistory")));115 btn = new JButton(new ContextSensitiveHelpAction(ht("/Action/ObjectHistory"))); 116 116 btn.setName("btn.help"); 117 117 pnl.add(btn); … … 159 159 putValue(NAME, tr("Close")); 160 160 putValue(SHORT_DESCRIPTION, tr("Close the dialog")); 161 putValue(SMALL_ICON,ImageProvider.get("ok"));161 new ImageProvider("ok").getResource().attachImageIcon(this); 162 162 } 163 163 … … 178 178 putValue(NAME, tr("Reload")); 179 179 putValue(SHORT_DESCRIPTION, tr("Reload the history from the server")); 180 putValue(SMALL_ICON,ImageProvider.get("dialogs", "refresh"));180 new ImageProvider("dialogs", "refresh").getResource().attachImageIcon(this); 181 181 } 182 182
Note:
See TracChangeset
for help on using the changeset viewer.