fix images
This commit is contained in:
parent
8e6b6c147e
commit
c2700c1574
|
@ -4,6 +4,7 @@ import java.awt.event.ActionEvent;
|
|||
import java.awt.event.ActionListener;
|
||||
import java.io.IOException;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* Das JoinGame Panel dient zum setzten des Ports/IP-Adresse.
|
||||
|
@ -16,7 +17,7 @@ public class JoinGame extends JPanel {
|
|||
String standardPort = "51525";
|
||||
|
||||
// Grafiken
|
||||
ImageIcon backButtonIcon = new ImageIcon("graphics/backButton.png");
|
||||
ImageIcon backButtonIcon = new ImageIcon(Objects.requireNonNull(getClass().getClassLoader().getResource("graphics/backButton.png")));
|
||||
|
||||
// Labels
|
||||
JLabel spielBeitretenLabel;
|
||||
|
|
Loading…
Reference in New Issue