extend dialog

This commit is contained in:
Johannes Schmelz 2024-11-24 22:41:53 +01:00
parent 55778dbcea
commit 1b2a7d73b5

View File

@ -26,13 +26,12 @@ import pp.monopoly.client.NetworkSupport;
import pp.monopoly.server.MonopolyServer; import pp.monopoly.server.MonopolyServer;
import pp.dialog.Dialog; import pp.dialog.Dialog;
import pp.dialog.DialogBuilder; import pp.dialog.DialogBuilder;
import pp.dialog.SimpleDialog;
/** /**
* Represents a dialog for setting up a network connection in the Battleship game. * Represents a dialog for setting up a network connection in the Battleship game.
* Allows users to specify the host and port for connecting to a game server. * Allows users to specify the host and port for connecting to a game server.
*/ */
public class CreateGameMenu extends SimpleDialog { public class CreateGameMenu extends Dialog {
private static final Logger LOGGER = System.getLogger(CreateGameMenu.class.getName()); private static final Logger LOGGER = System.getLogger(CreateGameMenu.class.getName());
private static final String LOCALHOST = "localhost"; //NON-NLS private static final String LOCALHOST = "localhost"; //NON-NLS
private static final String DEFAULT_PORT = "42069"; //NON-NLS private static final String DEFAULT_PORT = "42069"; //NON-NLS