001package apps.swing; 002 003import java.awt.event.ActionEvent; 004 005import javax.swing.Icon; 006 007import jmri.util.swing.*; 008 009/** 010 * 011 * @author Randall Wood Copyright 2020 012 */ 013public class AboutAction extends JmriAbstractAction { 014 015 public AboutAction(String s, WindowInterface wi) { 016 super(s, wi); 017 } 018 019 public AboutAction(String s, Icon i, WindowInterface wi) { 020 super(s, i, wi); 021 } 022 023 public AboutAction() { 024 super("About"); 025 } 026 027 @Override 028 public void actionPerformed(ActionEvent e) { 029 new AboutDialog(null, true).setVisible(true); 030 } 031 032 // never invoked, because we overrode actionPerformed above 033 @Override 034 public JmriPanel makePanel() { 035 throw new IllegalArgumentException("Should not be invoked"); 036 } 037 //private static final Logger log = LoggerFactory.getLogger(AboutAction.class); 038}