All Exercises in This Part
Return the project you created in Exercise 7.1.
Recap of the steps in this part:
- Create a JavaFX project based on the
io.github.ohj-perus-jy:javafx-fxml-template-archetype. - Run the program and verify that the JavaFX application window appears.
Return your project files.
Return the project you advanced in Exercise 7.2.
Recap of the steps in this part:
- In SceneBuilder, add your own
TextFieldcomponent inside theVBoxin the FXML file. - Add an
onActionevent handler to the button that adds the text entered into the text field to theLabelcomponent. - Display all tasks in the
Labelcomponent, separating them with line breaks.
Return your project files.
Create a Git repository for your project and make the first commit.
After that, run the git status command in the command line and submit its output to the submission box for this exercise.
Return the project you advanced in Exercise 7.4.
Recap of the steps in this part:
- Create two
VBoxcomponents for incomplete and completed tasks. - When the user enters a task, add it to the incomplete tasks
VBoxas aCheckBoxcomponent. - When the user marks a task as completed by clicking the check box, move it from the incomplete tasks
VBoxcontainer to the completed tasks container. - When the user marks a completed task as incomplete by clicking the check box, move it from the completed tasks container back to the incomplete tasks container.
- When the user adds a task, focus should return to the input field.
- The user should not be able to add a task without text or a task whose text consists only of whitespace characters.
- The user should also be able to add a task by pressing the Enter key while the input field has focus.
When the phase is complete, remember to run git add for the modified files and create a git commit.
Return your project files.
It does not matter if TIM shows a warning or even a compilation error. TIM may not contain all the dependencies required by the exercises, and therefore the JavaFX project may not even compile there.
The important thing is that you have the project working correctly in your local environment.
Return the project you advanced in Exercise 7.5.
Recap of the steps in this part:
-
Save the tasks to a JSON file whenever the user adds a task or changes a task's status.
-
Read the tasks from the JSON file when the program starts (if the file exists). The JSON file should look approximately as follows (excluding the line breaks and indentation added for readability):
[
{
"task": "Buy milk",
"done": false
},
{
"task": "Take out the trash",
"done": true
}
]
When the phase is complete, remember to run git add for the modified files and create a git commit.
Return your project files.
Return the project you advanced in Exercise 7.6.
Recap of the steps in this part:
- Set the minimum size of the view and window to 400×400 pixels.
- Add a small amount of empty space between the check boxes using the
spacingproperty. - Make the completed and incomplete task lists grow when many tasks are added.
- Place the button and text field on the same row using an
HBoxcontainer. - Align the labels to the left.
When the phase is complete, run git add for the modified files and create a git commit.
Return your project files.