001package jmri.jmrit.operations.setup; 002 003import java.awt.Frame; 004import java.awt.event.ActionEvent; 005 006import javax.swing.AbstractAction; 007 008/** 009 * Swing action to load the print options. 010 * 011 * @author Bob Jacobsen Copyright (C) 2001 012 * @author Daniel Boudreau Copyright (C) 2012 013 */ 014public class BuildReportOptionAction extends AbstractAction { 015 016 public BuildReportOptionAction() { 017 super(Bundle.getMessage("TitleBuildReportOptions")); 018 } 019 020 BuildReportOptionFrame f; 021 022 @Override 023 public void actionPerformed(ActionEvent e) { 024 // create a settings frame 025 if (f == null || !f.isVisible()) { 026 f = new BuildReportOptionFrame(); 027 f.initComponents(); 028 } 029 f.setExtendedState(Frame.NORMAL); 030 f.setVisible(true); // this also brings the frame into focus 031 } 032 033// private final static Logger log = LoggerFactory.getLogger(BuildReportOptionAction.class); 034} 035 036