- Create a new IntelliJ project and create a
wk3
package.
- Download the activity.fxml file and add it to the
wk3
folder for the project.
- Based on the contents of the FXML file, sketch what the window will look like.
- Implement the
Activity
class that loads the FXML file and displays the window.
- Implement the controller class specified in the FXML file with method stubs and no functionality.
- Implement the method in the controller class that responds to the Cancel button. The method should remove all text from the two text fields and resets the status label back to its original value.
- Implement the method in the controller class that responds to the Login button. It should set the status label to either Success or Denied based on the following success criteria: password field is longer than username.
- Update the success criteria to only be successful if the password is the username in reverse order.
- Update the success criteria to only be successful if the password and the username contain exactly the same characters (but in any order).
- Update the success criteria to be the same as the previous criteria but denied if the password and username are exactly the same.