001package jmri.util.usb;
002
003import java.awt.event.ActionEvent;
004import javax.swing.AbstractAction;
005
006/**
007 * Action to open the UsbBrowserFrame.
008 *
009 * @author Randall Wood Copyright 2017
010 */
011public class UsbBrowserAction extends AbstractAction {
012
013    public UsbBrowserAction(String s) {
014        super(s);
015    }
016
017    public UsbBrowserAction() {
018        super(Bundle.getMessage("UsbBrowserFrame.Title"));
019    }
020
021    @Override
022    public void actionPerformed(ActionEvent e) {
023        new UsbBrowserFrame().setVisible(true);
024    }
025
026}