asiavoices
Programmer
Hello again everyone,
I was wondering how I would go about coding to see if
1. A textfield has a minimum of say 15 characters (ie, Description)
2. Another field that checks for a six digit figure (ie. Price)
3. Another checkbox field to see if an item is taxable or not.
This question is an extension and related to the one I posted titled:
"Different variable type for Vector or array? Similar to Structure in C"
thread269-144403
I believe the logic involves creating a 2 JTextFields and JCheckbox... then when the event is clicked or entered, it does the ff:
1. Checks to see if Description field contains a least 15 characters
2. Checks to see if the Price field contains at least 6 digits
3. Checks to see if the Taxable field is checked or not.
Once this is done, it does the calculations and loads it into the ArrayList.
All help is appreciated.
Cheers,
Christopher
I was wondering how I would go about coding to see if
1. A textfield has a minimum of say 15 characters (ie, Description)
2. Another field that checks for a six digit figure (ie. Price)
3. Another checkbox field to see if an item is taxable or not.
This question is an extension and related to the one I posted titled:
"Different variable type for Vector or array? Similar to Structure in C"
thread269-144403
I believe the logic involves creating a 2 JTextFields and JCheckbox... then when the event is clicked or entered, it does the ff:
1. Checks to see if Description field contains a least 15 characters
2. Checks to see if the Price field contains at least 6 digits
3. Checks to see if the Taxable field is checked or not.
Once this is done, it does the calculations and loads it into the ArrayList.
All help is appreciated.
Cheers,
Christopher