示例#1
0
  /** Initialize the window */
  public void initComponents() {
    setTitle(rb.getString("WindowTitle"));

    setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);

    Container contentPane = getContentPane();
    contentPane.setLayout(new BoxLayout(contentPane, BoxLayout.Y_AXIS));

    // add table
    p = new AlignTablePane(this);
    p.initComponents();
    contentPane.add(p);

    // add help menu to window
    addHelpMenu("package.jmri.jmrix.rps.aligntable.AlignTableFrame", true);

    // check at shutdown
    setShutDownTask();

    // pack for display
    pack();
  }
示例#2
0
 protected void storeValues() {
   p.storeDefault();
   setModifiedFlag(false);
 }