Module 4 Advance Java Programming
Exercise 13: Swing Application and Summative Review
Read carefully each item below. Each item below requires all programming concepts mentioned in the previous
discussions and demos. Follow Java Coding Standard seriously and follow all the needed requirements. All outputs must be
readable, presentable and clear. Not following instructions will result to series of deductions. Note: Project name must be
discussed by the trainer.
Duration: 4 hours
A. Login Page
Create a Login user interface that looks like this:
Other specifications are as follows:
Implement all the components shown on the screen shot.
Use the appropriate foreground and background colors.
Use BoxLayout, FlowLayout, GridLayout or GridBagLayout or combinations of any.
This login page will allow only the following rules on user credentials:
o Usernames allowed are exactly 16 characters without space and with 3 numbers, one
capital letter, 6 lower case letter and 6 dashes having the following format:
A-1-ab-2-cd-3-ef
o Password allowed must start with a capital letter followed by 5 numbers and two @
symbols with the following format:
A12345@@
o If validation error is encountered, create a JOptionPane pop up for the custom error
message.
o If the validation is successful, the application will lead you to the menu page in B.
Once exceptions and validations above are encountered, create a disposable JModal or any
variants of modals indicated in the Swing Addendum handout.
A successful login will call the profile menu form in B.
B. Menu Page
The menu panel which is a Profile page accept new information of a person and save each record
(append) is a file profile.db using Buffer and FileChannel. There are validations rule to follow and these
are:
All student IDs are 5 digit numbers only
First names and last names accept only up to 50 characters without numbers
Address only accept up to 100 characters
Program must start with BSc.<space>, MSc.<space>, and PhD.<space>
Marital status must only accept 1, 2, 3, 4, 5 statuses only
Alibata Business and Technology Solutions Inc. Page 1
Country names must always starts with P or C or B or S
If there are validation errors, use JOptionPane message box to pop error message. Use FlowLayout,
BorderLayout, or GridBagLayout or combinations of any.
Once exceptions and validations above are encountered, create a disposable JModal or any
variants of modals indicated in the Swing Addendum handout.
Alibata Business and Technology Solutions Inc. Page 2