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
    Modifier and Type
    Field
    Description
    static final double
     
    static final double
     

    Fields inherited from class javafx.application.Application

    STYLESHEET_CASPIAN, STYLESHEET_MODENA
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SignupApplication

      public SignupApplication()
  • Method Details

    • start

      public void start(javafx.stage.Stage stage) throws IOException
      Starts the sign-up application by setting up the primary stage with the sign-up view.
      Specified by:
      start in class javafx.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

      public static void main(String[] args)
      Main method used to launch the signup application.
      Parameters:
      args - command line arguments.