Package com.svanloon.game.wizard.human.dialog

Examples of com.svanloon.game.wizard.human.dialog.MessageDialog


      if(winningId.intValue() == getId()) {
        win = true;
      }
    }
    log(msg);
    MessageDialog md = new MessageDialog();
    Point location = jFrame.getLocation();
    Dimension size = jFrame.getSize();
    Dimension dialogSize = md.getSize();
    md.setLocation((int)(location.getX() + size.getWidth() / 2.0 - dialogSize.getWidth() / 2.0), (int)(location.getY() + size.getHeight()/2.0 - dialogSize.getHeight()/2.0));
    if(win) {
      md.setTitle(LanguageFactory.getInstance().getString(MessageId.youWon));
    } else {
      md.setTitle(LanguageFactory.getInstance().getString(MessageId.youLost));
    }
    md.display(msg, jFrame);
  }
View Full Code Here

TOP

Related Classes of com.svanloon.game.wizard.human.dialog.MessageDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.