Changeset 1787 in josm for trunk/src/org
- Timestamp:
- 2009-07-14T16:26:06+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/dialogs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/ConflictDialog.java
r1750 r1787 20 20 21 21 import javax.swing.AbstractAction; 22 import javax.swing.JButton;23 22 import javax.swing.JList; 24 23 import javax.swing.JPanel; … … 46 45 import org.openstreetmap.josm.gui.NavigatableComponent; 47 46 import org.openstreetmap.josm.gui.OsmPrimitivRenderer; 47 import org.openstreetmap.josm.gui.SideButton; 48 48 import org.openstreetmap.josm.gui.layer.Layer; 49 49 import org.openstreetmap.josm.gui.layer.OsmDataLayer; … … 101 101 add(new JScrollPane(lstConflicts), BorderLayout.CENTER); 102 102 103 JButton btnResolve = new JButton(actResolve = new ResolveAction());103 SideButton btnResolve = new SideButton(actResolve = new ResolveAction()); 104 104 lstConflicts.getSelectionModel().addListSelectionListener(actResolve); 105 105 106 JButton btnSelect = new JButton(actSelect = new SelectAction());106 SideButton btnSelect = new SideButton(actSelect = new SelectAction()); 107 107 lstConflicts.getSelectionModel().addListSelectionListener(actSelect); 108 108 -
trunk/src/org/openstreetmap/josm/gui/dialogs/HistoryDialog.java
r1750 r1787 21 21 import javax.swing.Action; 22 22 import javax.swing.ImageIcon; 23 import javax.swing.JButton;24 23 import javax.swing.JComponent; 25 24 import javax.swing.JLabel; … … 46 45 import org.openstreetmap.josm.data.osm.history.HistoryDataSet; 47 46 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 47 import org.openstreetmap.josm.gui.SideButton; 48 48 import org.openstreetmap.josm.gui.history.HistoryBrowserDialog; 49 49 import org.openstreetmap.josm.io.OsmApi; … … 125 125 JPanel buttons = new JPanel(new GridLayout(1,2)); 126 126 127 JButton btn = new JButton(reloadAction = new ReloadAction());127 SideButton btn = new SideButton(reloadAction = new ReloadAction()); 128 128 btn.setName("btn.reload"); 129 129 buttons.add(btn); 130 130 131 btn = new JButton(showHistoryAction = new ShowHistoryAction());131 btn = new SideButton(showHistoryAction = new ShowHistoryAction()); 132 132 btn.setName("btn.showhistory"); 133 133 buttons.add(btn); -
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r1780 r1787 15 15 import javax.swing.AbstractAction; 16 16 import javax.swing.DefaultListModel; 17 import javax.swing.JButton;18 17 import javax.swing.JList; 19 18 import javax.swing.JPanel; … … 86 85 // create the panel with buttons 87 86 // 88 JPanel buttonPanel = new JPanel(new GridLayout(1, 4));87 JPanel buttonPanel = new JPanel(new GridLayout(1,3)); 89 88 buttonPanel.add(new SideButton(marktr("New"), "addrelation", "Selection", tr("Create a new relation"), new ActionListener() { 90 89 public void actionPerformed(ActionEvent e) { … … 105 104 } 106 105 }); 107 buttonPanel.add(new JButton(editAction), GBC.std());106 buttonPanel.add(new SideButton(editAction), GBC.std()); 108 107 109 108 // the delete action … … 111 110 deleteAction = new DeleteAction(); 112 111 displaylist.addListSelectionListener(deleteAction); 113 buttonPanel.add(new JButton(deleteAction), GBC.eol());112 buttonPanel.add(new SideButton(deleteAction), GBC.eol()); 114 113 add(buttonPanel, BorderLayout.SOUTH); 115 114
Note:
See TracChangeset
for help on using the changeset viewer.