Commit 683357f3 authored by 9831111's avatar 9831111 🙂

Add OfflineModeFrame class.

parent 3d9c0484
import javax.swing.*;
import java.awt.*;
public class OfflineModeFrame extends JFrame {
private ImageIcon deathMatchIcon;
private ImageIcon leagueIcon;
private JButton deathMatchButton;
private JButton leagueButton;
public OfflineModeFrame(String title) {
super(title);
setResizable(false);
setLayout(new FlowLayout());
setBounds(650, 450, 400, 165);
deathMatchIcon = new ImageIcon("pictures/deathMatch.png");
leagueIcon = new ImageIcon("pictures/league.png");
deathMatchButton = new JButton(deathMatchIcon);
leagueButton = new JButton(leagueIcon);
add(deathMatchButton);
add(leagueButton);
setVisible(true);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment