001package jmri.jmrit.roster.swing.speedprofile;
002
003import java.awt.event.ActionEvent;
004import javax.swing.Icon;
005import jmri.util.swing.JmriAbstractAction;
006import jmri.util.swing.WindowInterface;
007import org.slf4j.Logger;
008import org.slf4j.LoggerFactory;
009
010/**
011 * Swing action to create and register the Add Entry Exit Pair
012 *
013 * @author Kevin Dickerson Copyright (C) 2011
014 */
015public class SpeedProfileAction extends JmriAbstractAction {
016
017    public SpeedProfileAction(String s, WindowInterface wi) {
018        super(s, wi);
019    }
020
021    public SpeedProfileAction(String s, Icon i, WindowInterface wi) {
022        super(s, i, wi);
023    }
024
025    public SpeedProfileAction(String s) {
026        super(s);
027    }
028
029    @Override
030    public void actionPerformed(ActionEvent e) {
031        SpeedProfileFrame f = new SpeedProfileFrame();
032        try {
033            f.initComponents();
034        } catch (Exception ex) {
035            log.error("Exception: ", ex);
036        }
037        f.setVisible(true);
038    }
039
040    @Override
041    public jmri.util.swing.JmriPanel makePanel() { return null; } // not used by this classes actionPerformed, not migrated to new form yet
042
043    private final static Logger log = LoggerFactory.getLogger(SpeedProfileAction.class);
044}