use of org.magic.game.gui.components.dialog.CardChooseDialog in project MtgDesktopCompanion by nicho92.
the class CopyFromActions method actionPerformed.
@Override
public void actionPerformed(ActionEvent e) {
CardChooseDialog diag = new CardChooseDialog();
diag.setVisible(true);
if (diag.getSelected() != null)
try {
mc.setMagicCard((MagicCard) BeanUtils.cloneBean(diag.getSelected().getMagicCard()));
} catch (Exception e1) {
logger.error(e1);
}
mc.validate();
mc.repaint();
}
Aggregations