Java Swing Checklist Exercise
Java Swing Checklist Exercise
Objective:
Develop a Java Swing application that provides a checklist functionality. Users should be able to add
items to the checklist, mark items as complete, and clear completed items.
Requirements:
3. Checklist Display:
Each item in the checklist should have a checkbox (JCheckBox) to mark it as complete.
4. Adding Items:
When the user enters text into the JTextField and clicks the add button, the item should
be added to the checklist.
When the user clicks the clear button, remove all items that are marked as complete
from the checklist.
7. Layout Management:
8. Error Handling:
Include basic error handling, such as not allowing empty items to be added to the
checklist.
Bonus Challenges:
1. Save and Load:
Implement functionality to save the checklist to a file and load it when the application
starts.
2. Custom Rendering:
Customize the look of checklist items, perhaps changing the color or font of completed
items.
3. Multiple Lists: