001package jmri.jmrit.picker; 002 003import javax.swing.JMenuBar; 004import jmri.util.JmriJFrame; 005 006public class PickFrame extends JmriJFrame { 007 008 public PickFrame(String title) { 009 setTitle(title); 010 /* 011 addWindowListener(new java.awt.event.WindowAdapter() { 012 public void windowClosing(java.awt.event.WindowEvent e) { 013 dispose(); 014 } 015 }); 016 */ 017 makeMenus(); 018 019 PickListModel<?>[] models = {PickListModel.turnoutPickModelInstance(), 020 PickListModel.sensorPickModelInstance(), 021 PickListModel.signalHeadPickModelInstance(), 022 PickListModel.signalMastPickModelInstance(), 023 PickListModel.memoryPickModelInstance(), 024 PickListModel.reporterPickModelInstance(), 025 PickListModel.lightPickModelInstance(), 026 PickListModel.warrantPickModelInstance(), 027 PickListModel.oBlockPickModelInstance(), 028 PickListModel.entryExitPickModelInstance(), 029 PickListModel.logixPickModelInstance()}; 030 setContentPane(new PickPanel(models)); 031 setVisible(true); 032 pack(); 033 } 034 035 private void makeMenus() { 036 JMenuBar menuBar = new JMenuBar(); 037 //JMenu fileMenu = new JMenu(rb.getString("MenuFile")); 038 //fileMenu.add(new jmri.configurexml.SaveMenu()); 039 //menuBar.add(fileMenu); 040 setJMenuBar(menuBar); 041 addHelpMenu("package.jmri.jmrit.picker.PickTables", true); 042 } 043}