diff --git a/src/main/java/ch/unibas/dmi/dbis/cs108/multiplayer/client/gui/chat/ChatApp.java b/src/main/java/ch/unibas/dmi/dbis/cs108/multiplayer/client/gui/chat/ChatApp.java new file mode 100644 index 0000000..422f16e --- /dev/null +++ b/src/main/java/ch/unibas/dmi/dbis/cs108/multiplayer/client/gui/chat/ChatApp.java @@ -0,0 +1,25 @@ +package ch.unibas.dmi.dbis.cs108.multiplayer.client.gui.chat; + +import javafx.application.Application; +import javafx.stage.Stage; + +public class ChatApp extends Application { + + /** + * The main entry point for all JavaFX applications. The start method is called after the init + * method has returned, and after the system is ready for the application to begin running. + * + *

+ * NOTE: This method is called on the JavaFX Application Thread. + *

+ * + * @param primaryStage the primary stage for this application, onto which the application scene + * can be set. Applications may create other stages, if needed, but they will + * not be primary stages. + * @throws Exception if something goes wrong + */ + @Override + public void start(Stage primaryStage) throws Exception { + + } +} diff --git a/src/main/java/ch/unibas/dmi/dbis/cs108/multiplayer/client/gui/chat/ChatController.java b/src/main/java/ch/unibas/dmi/dbis/cs108/multiplayer/client/gui/chat/ChatController.java new file mode 100644 index 0000000..e0fe4ac --- /dev/null +++ b/src/main/java/ch/unibas/dmi/dbis/cs108/multiplayer/client/gui/chat/ChatController.java @@ -0,0 +1,37 @@ +package ch.unibas.dmi.dbis.cs108.multiplayer.client.gui.chat; + +import java.net.URL; +import java.util.ResourceBundle; +import javafx.fxml.FXML; +import javafx.fxml.Initializable; +import javafx.scene.control.Button; +import javafx.scene.control.TextArea; +import javafx.scene.control.TextField; +import javafx.scene.layout.VBox; + +public class ChatController implements Initializable { + + @FXML + private VBox vBoxChatMessages; + + @FXML + private Button sendButton; + @FXML + private TextField whisperTargetSelectField; + @FXML + private TextArea chatMsgField; + + + + /** + * Called to initialize a controller after its root element has been completely processed. + * + * @param location The location used to resolve relative paths for the root object, or {@code + * null} if the location is not known. + * @param resources The resources used to localize the root object, or {@code null} if + */ + @Override + public void initialize(URL location, ResourceBundle resources) { + + } +} diff --git a/src/main/java/ch/unibas/dmi/dbis/cs108/resources/splitPaneChatView.fxml b/src/main/java/ch/unibas/dmi/dbis/cs108/resources/splitPaneChatView.fxml new file mode 100644 index 0000000..1daa0be --- /dev/null +++ b/src/main/java/ch/unibas/dmi/dbis/cs108/resources/splitPaneChatView.fxml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +