Changeset 1376 in josm


Ignore:
Timestamp:
2009-02-07T22:52:18+01:00 (16 years ago)
Author:
framm
Message:

layout change for relation editor

Location:
trunk
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/RelationEditor.java

    r1368 r1376  
    66import java.awt.BorderLayout;
    77import java.awt.Dimension;
     8import java.awt.FlowLayout;
    89import java.awt.GridBagLayout;
    910import java.awt.GridLayout;
     
    247248        });
    248249
     250        /* I don't like this text any more. Let's just get on with doing the specialist
     251         * editors instead of talking about it.
    249252        JLabel help = new JLabel("<html><em>"+
    250253            tr("This is the basic relation editor which allows you to change the relation's tags " +
     
    252255            "detects the type of relationship and limits your choices in a sensible way.")+"</em></html>");
    253256        getContentPane().add(help, BorderLayout.NORTH);
     257         */
    254258        try { setAlwaysOnTop(true); } catch (SecurityException sx) {}
    255259
     
    346350        }
    347351
    348         JPanel buttonPanel = new JPanel(new GridLayout(1,3));
     352        // this is not exactly pretty but the four buttons simply don't fit in one line.
     353        // we should have smaller buttons for situations like this.
     354        JPanel buttonPanel = new JPanel(new GridLayout(2,2));
    349355
    350356        buttonPanel.add(createButton(marktr("Add Selected"),"addselected",
     
    355361        }));
    356362
    357         buttonPanel.add(createButton(marktr("Delete Selected"),"deleteselected",
    358         tr("Delete all currently selected objects from relation"), KeyEvent.VK_R, new ActionListener() {
     363        buttonPanel.add(createButton(marktr("Remove Selected"),"removeselected",
     364        tr("Remove all currently selected objects from relation"), KeyEvent.VK_R, new ActionListener() {
    359365            public void actionPerformed(ActionEvent e) {
    360366                deleteSelected();
     
    362368        }));
    363369
    364         buttonPanel.add(createButton(marktr("Delete"),"delete",
     370        buttonPanel.add(createButton(marktr("Remove"),"remove",
    365371        tr("Remove the member in the current table row from this relation"), KeyEvent.VK_D, new ActionListener() {
    366372            public void actionPerformed(ActionEvent e) {
Note: See TracChangeset for help on using the changeset viewer.