27 lines
676 B
Java
27 lines
676 B
Java
import java.awt.*;
|
|
import javax.swing.*;
|
|
import java.awt.event.ActionEvent;
|
|
import java.awt.event.ActionListener;
|
|
import java.io.IOException;
|
|
import java.net.InetSocketAddress;
|
|
|
|
public class WinLooseScreen extends JPanel {
|
|
JLabel winLabel = new JLabel("Du hast Gewonnen!");
|
|
JLabel looseLabel = new JLabel("Du hast Verloren!");
|
|
|
|
Font robotoFont = new Font("Roboto", Font.BOLD, 45);
|
|
|
|
public WinLooseScreen(MainFrame frame,boolean wl) {
|
|
setLayout(null);
|
|
buildPanel(frame,wl);
|
|
}
|
|
|
|
public void buildPanel(MainFrame frame,boolean wl) {
|
|
if (wl) {
|
|
add(winLabel);
|
|
}else{
|
|
add(looseLabel);
|
|
}
|
|
}
|
|
}
|