001package jmri.jmrix.rps.trackingpanel; 002 003import java.awt.event.ActionEvent; 004import javax.swing.AbstractAction; 005import jmri.jmrix.rps.RpsSystemConnectionMemo; 006 007/** 008 * Swing action to create and register a RpsTrackingFrame object. 009 * 010 * @author Bob Jacobsen Copyright (C) 2006, 2008 011 */ 012public class RpsTrackingFrameAction extends AbstractAction { 013 014 RpsSystemConnectionMemo memo = null; 015 016 public RpsTrackingFrameAction(String s,RpsSystemConnectionMemo _memo) { 017 super(s); 018 memo = _memo; 019 } 020 021 public RpsTrackingFrameAction(RpsSystemConnectionMemo _memo) { 022 this("RPS Tracking Display", _memo); 023 } 024 025 @Override 026 public void actionPerformed(ActionEvent e) { 027 RpsTrackingFrame f = new RpsTrackingFrame("RPS Tracking",memo); 028 029 f.initComponents(); 030 f.setVisible(true); 031 } 032 033}