Originally posted by Mihai Radulescu:
Hi, Thirumurugan
Thanks for your answer.
I am not shore that I understand wat you mean.
Can you detaliate a little
ThanX M.
ok so here is how I do my booking..
1. Assuming the results of the search are already displayed on the JTable
2. Get the details of the selected row and validate them (Like customer field blank, date validation, 48 hr rule )
3. If its ok throw a dialog to the user asking him to enter the details, like start date, cust id.
4. It user is ok and presses a button do a validation and if its ok, create a thread for back end updates.
5. The backend check locks record, reads again to see if has not been modified and if not modified do the update.
6. On success or failure it calls another method which runs in Event dispatcher thread to do GUI updates with success, failure message, Table updation..etc
Hope this is clear.
Thanks.
[ July 16, 2006: Message edited by: Thirumurugan Mylrajan ]