Independent Tasks
1. Task 1: Specialized Course Selection
Create an application that allows a student to select a discipline from a ListView.
-
Upon selecting a discipline from the list, a
ChoiceDialogshould open, asking the user for the “Enrollment Type” (e.g., Full-time, Part-time, Distance). -
The result of both selections should be displayed in an
Alertmessage. -
Add a
Tooltipto the list explaining how to make a selection.
2. Task 2: Text Editor with Context Menu
Develop a window with one large TextArea.
-
Add a
ContextMenuto theTextArea. -
The menu should contain the options: “Clear All” (clears the text), “Uppercase” (converts the entire text to uppercase), and “Change Color” (opens a
ColorPickerin a dialog window to change the font color). -
Add a
Tooltipto theTextAreawith the label “Type your notes here”.
3. Task 3: User Login Dialog
Create an application that, upon startup, does not show the main window immediately but instead first opens a TextInputDialog.
-
The user must enter their name in the dialog.
-
Once the user enters their name, a
ChoiceDialogfor selecting a role (Administrator, Moderator, User) should open immediately. -
If the user presses “OK”, the main window opens and displays a label (
Label) with the text: “Welcome, [Name]! You logged in as [Role].”. -
If the user presses “Cancel” or closes the dialog, the application must close (
Platform.exit()).