list.addElement(aName);
}
}
}
JPortalInternalFrame frame = new JPortalInternalFrame();
final GetSelectionDialog c = new GetSelectionDialog(frame, list);
frame.addPanel(c);
mParent.addInternalFrame(frame);
frame.setTitle("Select a Name");
frame.setSize(400, 130);
frame.setVisible(true);
frame.addInternalFrameListener(new javax.swing.event.InternalFrameAdapter() {
@Override
public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {
CardDeckListEditPanel cx = new CardDeckListEditPanel(c.getString(), getQuestMatchPoolBaseName());
cx.setPresetMode(true);
mParent.addPanel(cx);
mParent.setMainPanel(cx);
mParent.windowMe(cx, 1000,700, "Edit preset.");