Class SignupApplication
java.lang.Object
javafx.application.Application
com.example.wellbeing_project.signup.SignupApplication
public class SignupApplication
extends javafx.application.Application
Application class to manage the sign-up view.
-
Nested Class Summary
Nested classes/interfaces inherited from class javafx.application.Application
javafx.application.Application.Parameters
-
Field Summary
Fields inherited from class javafx.application.Application
STYLESHEET_CASPIAN, STYLESHEET_MODENA
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Main method used to launch the signup application.void
openLogin
(javafx.stage.Stage stage) Opens the login page by creating a new instance of LoginApplication and starting it.void
start
(javafx.stage.Stage stage) Starts the sign-up application by setting up the primary stage with the sign-up view.Methods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop
-
Field Details
-
WIDTH
public static final double WIDTH- See Also:
-
HEIGHT
public static final double HEIGHT- See Also:
-
-
Constructor Details
-
SignupApplication
public SignupApplication()
-
-
Method Details
-
start
Starts the sign-up application by setting up the primary stage with the sign-up view.- Specified by:
start
in classjavafx.application.Application
- Parameters:
stage
- the primary stage for the sign-up application.- Throws:
IOException
- if the FXML file cannot be loaded.
-
openLogin
public void openLogin(javafx.stage.Stage stage) Opens the login page by creating a new instance of LoginApplication and starting it. Closes the current stage.- Parameters:
stage
- current stage to be closed.
-
main
Main method used to launch the signup application.- Parameters:
args
- command line arguments.
-