From cfe68c0889cf0f4ae11bc1d228ebfddb95808c58 Mon Sep 17 00:00:00 2001 From: Charles Gould Date: Mon, 20 Apr 2015 00:26:01 -0400 Subject: [PATCH] Fix win/loss alert type --- src/main/java/com/charego/freecellfx/view/GameCanvas.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/charego/freecellfx/view/GameCanvas.java b/src/main/java/com/charego/freecellfx/view/GameCanvas.java index 18bc150..c19a6a9 100644 --- a/src/main/java/com/charego/freecellfx/view/GameCanvas.java +++ b/src/main/java/com/charego/freecellfx/view/GameCanvas.java @@ -54,9 +54,9 @@ public class GameCanvas extends Canvas { } if (game.isWon()) { winMessageShown = true; - new Alert(Alert.AlertType.CONFIRMATION, "You won!").showAndWait(); + new Alert(Alert.AlertType.INFORMATION, "You won!").showAndWait(); } else if (game.isLost()) { - new Alert(Alert.AlertType.CONFIRMATION, "You lost!").showAndWait(); + new Alert(Alert.AlertType.INFORMATION, "You lost!").showAndWait(); } }