From 8a08e58e84be62d76638191c1c18f1860b5d2c4c Mon Sep 17 00:00:00 2001 From: delvh Date: Fri, 3 Apr 2020 10:38:36 +0200 Subject: [PATCH] Commented display of result-image out --- src/main/dev/lh/ui/Endscreen.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/dev/lh/ui/Endscreen.java b/src/main/dev/lh/ui/Endscreen.java index 3432a98..2900378 100755 --- a/src/main/dev/lh/ui/Endscreen.java +++ b/src/main/dev/lh/ui/Endscreen.java @@ -67,10 +67,11 @@ public class Endscreen extends JDialog { lblDeinPunktestand.setFont(new Font("Times New Roman", Font.PLAIN, 25)); contentPanel.add(lblDeinPunktestand, BorderLayout.NORTH); - Image resultImage = Toolkit.getDefaultToolkit() - .getImage(this.getClass() - .getResource((score < goodOrBadResult) ? "/Snake/src/main/resources/Try_Again.jpg" : "/Snake/src/main/resources/1211548-200.png")); - resultImage.flush(); +//TODO: the display ofthe result image could work, but not guaranteed +// Image resultImage = Toolkit.getDefaultToolkit() +// .getImage(this.getClass() +// .getResource((score < goodOrBadResult) ? "/Snake/src/main/resources/Try_Again.jpg" : "/Snake/src/main/resources/1211548-200.png")); +// resultImage.flush(); setVisible(true); }