Ignore:
Timestamp:
2007-11-10T03:17:25+01:00 (17 years ago)
Author:
ulf
Message:

move the LiveGPS menu more to the right and fix accelerator keys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/livegps/livegps/LiveGpsPlugin.java

    r3895 r5421  
    4040        lgpsmenu = new JMenu("LiveGPS");
    4141        lgpsmenu.setMnemonic(KeyEvent.VK_G);
    42         menu.add(lgpsmenu, 2);
     42        menu.add(lgpsmenu, 5);
    4343        lgpscapture = new JCheckBoxMenuItem(tr("Capture GPS Track"));
    4444        lgpscapture.setSelected(false);
     
    5151        lgpsmenu.add(lgpscapture);
    5252
    53         lgpscenter = new JMenuItem(tr("Center Once"), KeyEvent.VK_C);
     53        lgpscenter = new JMenuItem(tr("Center Once"));
     54        lgpscenter.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, 0));
    5455        lgpscenter.addActionListener(new ActionListener() {
    5556                public void actionPerformed(ActionEvent ev) {
Note: See TracChangeset for help on using the changeset viewer.