예제 #1
0
  /** For item popups in Control Panel Editor */
  protected void makePalettteFrame(String title) {
    jmri.jmrit.display.palette.ItemPalette.loadIcons(_editor);

    _paletteFrame = new jmri.util.JmriJFrame(title, false, false);
    _paletteFrame.setLocationRelativeTo(this);
    _paletteFrame.toFront();
    _paletteFrame.addWindowListener(
        new java.awt.event.WindowAdapter() {
          public void windowClosing(java.awt.event.WindowEvent e) {
            ImageIndexEditor.checkImageIndex(); // write maps to tree
          }
        });
  }