Commit bd19c451 authored by 9831111's avatar 9831111 🙂

Add initServerList method.

parent 6c82ebe5
......@@ -18,5 +18,24 @@ public class OnlineModeFrame extends JFrame {
setVisible(true);
}
public void initServerList() {
serverChoosePanel = new JPanel();
serverChoosePanel.setLayout(new FlowLayout());
serverBox = new JComboBox();
serverBox.addItem("Server 1");
serverBox.addItem("Server 2");
serverBox.addItem("Server 3");
playButton = new JButton("Play");
serverChoosePanel.add(serverBox);
serverChoosePanel.add(playButton);
createGame = new JButton("Create New Game");
createGame.addActionListener(new CreateNewGameAction());
serverChoosePanel.add(createGame);
add(serverChoosePanel, BorderLayout.NORTH);
}
}
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