Package Project1.GUI

Examples of Project1.GUI.MainFrame


    else {
      R6.setSelected(true);
    }
  }
  private void updateArgs() {
    GameSize newSize;
    if (R8.isSelected()) {
      newSize = GameSize.C8;
    }
    else if (R7.isSelected()) {
      newSize = GameSize.C7;
View Full Code Here


    // Show the face
    this.setIcon(Child.getImage());
    current = Child.getImage();
   
    // Determine the type of match
    Matching MatchType;
    if (Game.get().FlippedCard == null) {
      MatchType = Matching.Reveal;
    }
    else if (Game.get().FlippedCard != this) {
      if (Game.get().FlippedCard.getCard() == this.getCard()) {
View Full Code Here

        }
      }
    }
    if (cTotal - cHerobrine == 0 ) {
      // Award the winner the game and exit
      Player victor =
        Player1.getScore() > Player2.getScore()
        ? Player1
        : Player2;
     
      victor.giveWin();
      GamePanel.get().updateLabels();
     
      // Play victory sound (eat for a second then burp) :)
      try {
        Card.Clips.get("Eat").loop();
        TimeUnit.SECONDS.sleep(1);
        Card.Clips.get("Eat").stop();
      } catch (InterruptedException ie) {
        Card.Clips.get("Eat").stop();
      }
      Card.Clips.get("Burp").play();
     
      // Show Congratulatory Message
      JOptionPane.showMessageDialog(
        MainFrame.get(),
        "Congratulations " + victor.getName() + "!",
        "You Won",
        JOptionPane.INFORMATION_MESSAGE
      );
     
      // Set ActiveGame to null
View Full Code Here

     * System.out
     * .println("\nPrintout after removing interval with low-end 10:");
     * System.out.println(intervalTree.toString());
     */

    JFrame main = new MainFrame();
    main.setVisible(true);
  }
View Full Code Here

         *  Bildschirm an.
         */
     
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MainFrame().setVisible(true);
            }
        });
        // doesnt work because REngine is not initialized
        //
        //
View Full Code Here

     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            new MainFrame().setVisible(true);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
View Full Code Here

{
    // constructors -----------------------------------------------------------

    public Project2()
    {
        Project1 project = new Project1();
    }
View Full Code Here

{
    // constructors -----------------------------------------------------------

    public Project2()
    {
        Project1 project = new Project1();
    }
View Full Code Here

    // constructors -----------------------------------------------------------

    public Project2()
    {
        Project1 project = new Project1();
    }
View Full Code Here

TOP

Related Classes of Project1.GUI.MainFrame

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.