add roomss
This commit is contained in:
@@ -268,4 +268,16 @@ public class ClientGuiController implements ClientListener {
|
||||
public void handleActualRoom(String roomName) {
|
||||
|
||||
}
|
||||
|
||||
public void createRoom() {
|
||||
TextInputDialog dialog = new TextInputDialog();
|
||||
dialog.setTitle("Create a room");
|
||||
dialog.setHeaderText("Enter the name of the room");
|
||||
dialog.setContentText("Room name:");
|
||||
Optional<String> result = dialog.showAndWait();
|
||||
result.ifPresent(name -> {
|
||||
client.SendCreateRoom(name);
|
||||
createChatEnv(name);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user