Data Validation tutorial
Dog Grooming Salon UI no code
Download the data validation task and marksheet here.
Download the DVT reason table here.
Use the LGoodDatePicker. Download instructions here.
Download LGoodDatePicker.jar
Data Validation Documentation requires
Title Page
Content Page
Screenshot of completed UI
Table including columns for component type, component name, component data type, reason for choosing component, data validation rule used, reason for using data validation rule
Test Plan Table including columns with component name, standard data, extreme data, abnormal data to be tested.
Screenshots of every component being tested with all three types of data, screenshot of final success message
Entire program code (file, print to html, tick open browser, copy code - change to courier new, size 8/9)
The JXDatePicker is no longer used.
Adding a date picker to NetBeans palette. (Note: select swingx-all-1.6.*) (If link broken download pdf)
The above date picker no longer works with Java's new Date implementation. So use this one instead.
How to get the date from the datepicker:
Date selectedDate = (Date) datePicker.getDate();
Calendar cal = Calendar.getInstance();
cal.setTime(selectedDate);
int year = cal.get(Calendar.YEAR);
int month = cal.get(Calendar.MONTH); // note that months are 0-11 e.g. Jan = 0 and Dec = 11.
int day = cal.get(Calendar.DAY_OF_MONTH);
// Get current date
SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
Date date = new Date();
// Get current date
Calendar cal2 = Calendar.getInstance();
cal2.getTime();
year = cal2.get(Calendar.YEAR);
month = cal2.get(Calendar.MONTH); // note that months are 0-11 e.g. Jan = 0 and Dec = 11.
day = cal2.get(Calendar.DAY_OF_MONTH);
try
{
double d = Double.parseDouble(str);
}
catch(NumberFormatException nfe)
{
return false;
}
How to check for a string in java
ID Number format
Right click on the coffee cup - choose properties.
Select Run, then browse, choose the Form as your Main class.
Now delete the unused auto generated java class.
Zuskin provides some useful ideas. Note that a JTextField should be txf (he has written txt in error). If link broken then download pdf.
Add your radio buttons to the UI (name them appropriately)
Add a radio button group to the UI (name it appropriately)
Right click on each radio button and choose properties - find the button group property and choose the button group.
RGB = (214, 217,223)
ID Number Format explained.