Search in sources :

Example 1 with CardChooseDialog

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();
}
Also used : MagicCard(org.magic.api.beans.MagicCard) CardChooseDialog(org.magic.game.gui.components.dialog.CardChooseDialog)

Aggregations

MagicCard (org.magic.api.beans.MagicCard)1 CardChooseDialog (org.magic.game.gui.components.dialog.CardChooseDialog)1