ClientSideGui: What does the public void start(Stage primaryStatge) method do? - rsanchez-wsu/jfiles GitHub Wiki
Start Method
The start method starts out with creating labels that are built with specific
- usernames
- passwords
Because of setting this up with pre-built or chosen passwords and usernames this will help with security and allow less need to need to trust the user for correct input.
Next after it sets up the username and password. There is a check that when the user enters in a password and username combination that it checks and is written in correctly or it will fail to login.
Text field Creation
Going down the start method it goes through and builds the text fields for the user to use so they can enter in a username and password. There are two fields for both the username and for the password.
Button Creation
The following part of the start method is used in creating buttons for the user to press if they want to either connect or exit out.
Boarder Pane
The Boarder Pane is used for building the area where the user can interact with the console. It sets up the location and the length and width of the location.
Menu Creation
The next section of code is used for a menu creation. This is full of multiple sections that are made up of creating buttons, creating items for the user to interact with in the menu, then each item is added into the menu bar.
The the method ends with building the scene for the base pane to be placed into. This then ends the the start method.