Changeset 333 in josm


Ignore:
Timestamp:
2007-09-27T01:23:42+02:00 (17 years ago)
Author:
framm
Message:

fixes

Location:
branch/0.5
Files:
1 added
1 edited

Legend:

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

    r330 r333  
    209209                JPanel buttonPanel = new JPanel(new GridLayout(1,3));
    210210               
    211                 buttonPanel.add(createButton(marktr("Add Selected"),tr("Add all currently selected objects as members"), KeyEvent.VK_A, new ActionListener() {
     211                buttonPanel.add(createButton(marktr("Add Selected"),"addselected", tr("Add all currently selected objects as members"), KeyEvent.VK_A, new ActionListener() {
    212212                        public void actionPerformed(ActionEvent e) {
    213213                                addSelected();
     
    215215                }));
    216216
    217                 buttonPanel.add(createButton(marktr("Delete"),tr("Remove the member in the current table row from this relation"), KeyEvent.VK_D, new ActionListener() {
     217                buttonPanel.add(createButton(marktr("Delete"),"delete", tr("Remove the member in the current table row from this relation"), KeyEvent.VK_D, new ActionListener() {
    218218                        public void actionPerformed(ActionEvent e) {
    219219                                int row = memberTable.getSelectedRow();
     
    226226                }));
    227227
    228                 buttonPanel.add(createButton(marktr("Select"),tr("Highlight the member from the current table row as JOSM's selection"), KeyEvent.VK_S, new ActionListener() {
     228                buttonPanel.add(createButton(marktr("Select"),"select", tr("Highlight the member from the current table row as JOSM's selection"), KeyEvent.VK_S, new ActionListener() {
    229229                        public void actionPerformed(ActionEvent e) {
    230230                                int row = memberTable.getSelectedRow();
     
    261261        }
    262262       
    263         private JButton createButton(String name, String tooltip, int mnemonic, ActionListener actionListener) {
    264                 JButton b = new JButton(tr(name), ImageProvider.get("dialogs", name.toLowerCase()));
     263        private JButton createButton(String name, String iconName, String tooltip, int mnemonic, ActionListener actionListener) {
     264                JButton b = new JButton(tr(name), ImageProvider.get("dialogs", iconName));
    265265                b.setActionCommand(name);
    266266                b.addActionListener(actionListener);
Note: See TracChangeset for help on using the changeset viewer.