Package service

Examples of service.ScoreService


    private void submitButtonClicked(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_submitButtonClicked
        try {
            String writeString = userScore + "_" + nameInput.getText();
            System.out.println(writeString);
            ScoreService serviceCall = new ScoreService();
           
            serviceCall.writeScore(writeString, false);
            Highscores highscores = new Highscores();
            highscores.setVisible(true);
            this.dispose();
       
        } catch(Exception e) {
View Full Code Here


                correctLetter = true;
            }
           
            if(!outputLabel.getText().contains("_")) {
               
                ScoreService scoreServiceCall = new ScoreService();               
                HashMap<String, Integer> scoresInfo = scoreServiceCall.readScores();
                int userScore = triesLeftInt * 10;
               
                if(scoresInfo.get("lowestScore") == null) {
                    String message = "You have won! \nYour score is " + userScore +
                                     " ..and it is a highscore! \nWould you like to save your score?";
View Full Code Here

TOP

Related Classes of service.ScoreService

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.