The Following block of code creates the UI described using Java Swing Components.
|
The Output of UpdatesRecords table is as shown below:
|
|
Diagram 22.28 The Update Record Screen for UpdatesRecords.class.
|
Once the UI, (as shown in diagram 22.25), has been created it is necessary to add the functionality to the UI so that it works like any standard Window's based commerical application data entry form.
Now, first of all, you will 'Search' record entering Registration No in Reg.No JTextField like '601' and then click on the 'Search' Button. If record is exist in database then it will show all records in UI fields otherwise form will show Error Message that 'Registration No. 61 is Not Exist!!!' as shown below diagram 22.26.
|
Diagram 22.29 Message displayed when wrong Reg.No is entered.
|
|
Diagram 22.30 Screen Ready for udpate record
|
|
Diagram 22.31 Screen asking Do you want update this record?
|
|
Diagram 22.32 Display message Record Successfully Updated
|
|
Diagram 22.33 Display Screen after successfully updated record
|
No comments:
Post a Comment