fix images

This commit is contained in:
ole 2024-12-23 23:23:23 +01:00
parent 8e6b6c147e
commit c2700c1574
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import java.awt.event.ActionEvent;
import java.awt.event.ActionListener; import java.awt.event.ActionListener;
import java.io.IOException; import java.io.IOException;
import java.net.InetSocketAddress; import java.net.InetSocketAddress;
import java.util.Objects;
/** /**
* Das JoinGame Panel dient zum setzten des Ports/IP-Adresse. * Das JoinGame Panel dient zum setzten des Ports/IP-Adresse.
@ -16,7 +17,7 @@ public class JoinGame extends JPanel {
String standardPort = "51525"; String standardPort = "51525";
// Grafiken // Grafiken
ImageIcon backButtonIcon = new ImageIcon("graphics/backButton.png"); ImageIcon backButtonIcon = new ImageIcon(Objects.requireNonNull(getClass().getClassLoader().getResource("graphics/backButton.png")));
// Labels // Labels
JLabel spielBeitretenLabel; JLabel spielBeitretenLabel;