From 2c819557ff38287c5d29d2b73ba06367e949a4af Mon Sep 17 00:00:00 2001 From: loic Date: Thu, 22 Sep 2016 22:18:20 +0200 Subject: [PATCH] Center --- src/main/java/controller/MainWindowController.java | 2 +- src/main/resources/JavafxView/MainWindow.fxml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/controller/MainWindowController.java b/src/main/java/controller/MainWindowController.java index 36b0293..253ce33 100644 --- a/src/main/java/controller/MainWindowController.java +++ b/src/main/java/controller/MainWindowController.java @@ -103,7 +103,7 @@ public class MainWindowController implements IObserver { this.score.setFont(new Font(40)); if(this.adapter.isLoosed()){ - this.score.setText("Score : " + this.model.getScore() + " ----- YOU LOOSE !!"); + this.score.setText("Score : " + this.model.getScore() + "\n You loose !!!"); } else{ this.score.setText("Score : " + this.model.getScore()); diff --git a/src/main/resources/JavafxView/MainWindow.fxml b/src/main/resources/JavafxView/MainWindow.fxml index 78354bf..2764439 100644 --- a/src/main/resources/JavafxView/MainWindow.fxml +++ b/src/main/resources/JavafxView/MainWindow.fxml @@ -11,7 +11,11 @@ xmlns:fx="http://javafx.com/fxml" prefWidth="800" prefHeight="800" > + + + +