Commented any usage of images out

This commit is contained in:
delvh 2020-07-01 20:58:14 +02:00
parent b584589459
commit daf55abd93

View File

@ -1,6 +1,7 @@
package dev.lh.ui; package dev.lh.ui;
import java.awt.*; import java.awt.BorderLayout;
import java.awt.Font;
import java.awt.event.KeyEvent; import java.awt.event.KeyEvent;
import javax.swing.*; import javax.swing.*;
@ -20,7 +21,7 @@ public class Endscreen extends JDialog {
private static final long serialVersionUID = -4457484397259161063L; private static final long serialVersionUID = -4457484397259161063L;
private static final int goodOrBadResult = 200; // private static final int goodOrBadResult = 200;
private final JPanel contentPanel = new JPanel(); private final JPanel contentPanel = new JPanel();
private final int score; private final int score;
@ -49,9 +50,10 @@ public class Endscreen extends JDialog {
lblDeinPunktestand.setFont(new Font("Times New Roman", Font.PLAIN, 25)); lblDeinPunktestand.setFont(new Font("Times New Roman", Font.PLAIN, 25));
contentPanel.add(lblDeinPunktestand, BorderLayout.NORTH); contentPanel.add(lblDeinPunktestand, BorderLayout.NORTH);
final Image resultImage = Toolkit.getDefaultToolkit() // final Image resultImage = Toolkit.getDefaultToolkit()
.getImage(this.getClass().getResource(score < goodOrBadResult ? "/Try_Again.jpg" : "/1211548-200.png")); // .getImage(this.getClass().getResource(score < goodOrBadResult ?
resultImage.flush(); // "/Try_Again.jpg" : "/1211548-200.png"));
// resultImage.flush();
} }
/** /**