001package jmri.jmrit.operations.rollingstock.engines.tools; 002 003import java.awt.event.ActionEvent; 004 005import javax.swing.AbstractAction; 006import javax.swing.JTable; 007 008/** 009 * Swing action to create an EnginesSetFrame object. 010 * 011 * @author Bob Jacobsen Copyright (C) 2001 012 * @author Daniel Boudreau Copyright (C) 2024 013 */ 014public class EnginesSetFrameAction extends AbstractAction { 015 016 JTable _enginesTable; 017 018 public EnginesSetFrameAction(JTable enginesTable) { 019 super(Bundle.getMessage("TitleSetEngines")); 020 _enginesTable = enginesTable; 021 } 022 023 @Override 024 public void actionPerformed(ActionEvent e) { 025 EnginesSetFrame esf = new EnginesSetFrame(); 026 esf.initComponents(_enginesTable); 027 } 028} 029 030