Changeset 1787 in josm for trunk/src/org


Ignore:
Timestamp:
2009-07-14T16:26:06+02:00 (15 years ago)
Author:
stoecker
Message:

unify design

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  
    2020
    2121import javax.swing.AbstractAction;
    22 import javax.swing.JButton;
    2322import javax.swing.JList;
    2423import javax.swing.JPanel;
     
    4645import org.openstreetmap.josm.gui.NavigatableComponent;
    4746import org.openstreetmap.josm.gui.OsmPrimitivRenderer;
     47import org.openstreetmap.josm.gui.SideButton;
    4848import org.openstreetmap.josm.gui.layer.Layer;
    4949import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     
    101101        add(new JScrollPane(lstConflicts), BorderLayout.CENTER);
    102102
    103         JButton btnResolve = new JButton(actResolve = new ResolveAction());
     103        SideButton btnResolve = new SideButton(actResolve = new ResolveAction());
    104104        lstConflicts.getSelectionModel().addListSelectionListener(actResolve);
    105105
    106         JButton btnSelect = new JButton(actSelect = new SelectAction());
     106        SideButton btnSelect = new SideButton(actSelect = new SelectAction());
    107107        lstConflicts.getSelectionModel().addListSelectionListener(actSelect);
    108108
  • trunk/src/org/openstreetmap/josm/gui/dialogs/HistoryDialog.java

    r1750 r1787  
    2121import javax.swing.Action;
    2222import javax.swing.ImageIcon;
    23 import javax.swing.JButton;
    2423import javax.swing.JComponent;
    2524import javax.swing.JLabel;
     
    4645import org.openstreetmap.josm.data.osm.history.HistoryDataSet;
    4746import org.openstreetmap.josm.gui.PleaseWaitRunnable;
     47import org.openstreetmap.josm.gui.SideButton;
    4848import org.openstreetmap.josm.gui.history.HistoryBrowserDialog;
    4949import org.openstreetmap.josm.io.OsmApi;
     
    125125        JPanel buttons = new JPanel(new GridLayout(1,2));
    126126
    127         JButton btn = new JButton(reloadAction = new ReloadAction());
     127        SideButton btn = new SideButton(reloadAction = new ReloadAction());
    128128        btn.setName("btn.reload");
    129129        buttons.add(btn);
    130130
    131         btn = new JButton(showHistoryAction = new ShowHistoryAction());
     131        btn = new SideButton(showHistoryAction = new ShowHistoryAction());
    132132        btn.setName("btn.showhistory");
    133133        buttons.add(btn);
  • trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java

    r1780 r1787  
    1515import javax.swing.AbstractAction;
    1616import javax.swing.DefaultListModel;
    17 import javax.swing.JButton;
    1817import javax.swing.JList;
    1918import javax.swing.JPanel;
     
    8685        // create the panel with buttons
    8786        //
    88         JPanel buttonPanel = new JPanel(new GridLayout(1,4));
     87        JPanel buttonPanel = new JPanel(new GridLayout(1,3));
    8988        buttonPanel.add(new SideButton(marktr("New"), "addrelation", "Selection", tr("Create a new relation"), new ActionListener() {
    9089            public void actionPerformed(ActionEvent e) {
     
    105104            }
    106105        });
    107         buttonPanel.add(new JButton(editAction), GBC.std());
     106        buttonPanel.add(new SideButton(editAction), GBC.std());
    108107
    109108        // the delete action
     
    111110        deleteAction = new DeleteAction();
    112111        displaylist.addListSelectionListener(deleteAction);
    113         buttonPanel.add(new JButton(deleteAction), GBC.eol());
     112        buttonPanel.add(new SideButton(deleteAction), GBC.eol());
    114113        add(buttonPanel, BorderLayout.SOUTH);
    115114
Note: See TracChangeset for help on using the changeset viewer.