Task 11: Java GUI Basics
Task 11.1:
Make a form that shall look like this:
Name: _____________ (Text field)
Email: _____________
Gender: o Male o Female (radio button)
Subjects: o OOP o DB o Web o Android o Machine Learning [Check boxes]
[ Submit ] (submit button)
Make a class User with name, email, gender and subjects instance attributes of type String, String, Boolean, and ArrayList<String>.
When user fill above form and press the submit button, make an object of User using the form data and save that object on file using Serialization.
When user run the program again, if user has saved the user object earlier, load the form with user existing data (explore some functions of Swing components using API docs and Googling).
~~~~~~~~~~~~~~~
Task 12 would be Assignment 4 and would be little complex using Swing programming. So make sure you have done task 11.
Make a form that shall look like this:
Name: _____________ (Text field)
Email: _____________
Gender: o Male o Female (radio button)
Subjects: o OOP o DB o Web o Android o Machine Learning [Check boxes]
[ Submit ] (submit button)
Make a class User with name, email, gender and subjects instance attributes of type String, String, Boolean, and ArrayList<String>.
When user fill above form and press the submit button, make an object of User using the form data and save that object on file using Serialization.
When user run the program again, if user has saved the user object earlier, load the form with user existing data (explore some functions of Swing components using API docs and Googling).
~~~~~~~~~~~~~~~
Task 12 would be Assignment 4 and would be little complex using Swing programming. So make sure you have done task 11.
Comments
Post a Comment