source: josm/src/org/openstreetmap/josm/actions/PreferencesAction.java@ 1

Last change on this file since 1 was 1, checked in by imi, 20 years ago

wiki 19:37, 27. Sep 2005

File size: 724 bytes
Line 
1package org.openstreetmap.josm.actions;
2
3import java.awt.event.ActionEvent;
4import java.awt.event.KeyEvent;
5
6import javax.swing.AbstractAction;
7import javax.swing.ImageIcon;
8
9import org.openstreetmap.josm.gui.PreferenceDialog;
10
11/**
12 * Open the Preferences dialog.
13 *
14 * @author imi
15 */
16public class PreferencesAction extends AbstractAction {
17
18 /**
19 * Create the preference action with "&Preferences" as label.
20 */
21 public PreferencesAction() {
22 super("Preferences", new ImageIcon("images/preference.png"));
23 putValue(MNEMONIC_KEY, KeyEvent.VK_P);
24 }
25
26 /**
27 * Launch the preferences dialog.
28 */
29 public void actionPerformed(ActionEvent e) {
30 PreferenceDialog dlg = new PreferenceDialog();
31 dlg.setVisible(true);
32 }
33}
Note: See TracBrowser for help on using the repository browser.