001package jmri.jmrix.rfid.swing.tagcarwin;
002
003import jmri.util.JmriJFrame;
004
005/**
006 * The frame to hold an AssociateTag panel
007 *
008 * @author J. Scott Walton Copyright (C) 2022
009 */
010public class AssociateFrame extends JmriJFrame {
011
012    AssociateTag panel;
013
014    public AssociateFrame(AssociateTag tagPanel, String title) {
015        super(false, false);
016        panel = tagPanel;
017        setEscapeKeyClosesWindow(true);
018        setTitle(title);
019        tagPanel.setParentFrame(this);
020    }
021
022    @Override
023    public void initComponents() {
024        panel.initComponents();
025        getContentPane().add(panel);
026        pack();
027        this.setVisible(true);
028    }
029
030
031}