001package jmri.jmrix.pricom.downloader;
002
003import java.awt.event.ActionEvent;
004import java.util.ResourceBundle;
005import javax.swing.AbstractAction;
006
007/**
008 * Swing action to create and register a LoaderFrame object.
009 *
010 * @author Bob Jacobsen Copyright (C) 2005
011 */
012public class LoaderPanelAction extends AbstractAction {
013
014    static ResourceBundle res = ResourceBundle.getBundle("jmri.jmrix.pricom.downloader.Loader");
015
016    public LoaderPanelAction(String s) {
017        super(s);
018
019    }
020
021    public LoaderPanelAction() {
022        this(res.getString("TitleLoader"));
023    }
024
025    @Override
026    public void actionPerformed(ActionEvent e) {
027        // create a PowerPanelFrame
028        LoaderFrame f = new LoaderFrame();
029        f.setVisible(true);
030    }
031}