Login page

This commit is contained in:
Clément
2025-03-05 18:08:26 +01:00
parent 6d228aee55
commit 5cefe42a99
4 changed files with 77 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
package client;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.control.TextField;
import javafx.stage.Stage;
import client.ClientGui;
import java.io.IOException;
import static utilities.FxUtilities.centerStage;
public class ClientLogin {
@FXML
public TextField usernameField;
@FXML
private void login() throws IOException {
var loader = new FXMLLoader(getClass().getResource("/client/clientLoading.fxml"));
loader.load();
Stage stage = (Stage) usernameField.getScene().getWindow();
stage.setScene(new Scene(loader.getRoot(), 800, 600));
centerStage(stage);
}
}