Java Reference
In-Depth Information
class called DBAccess with all the needed objects. Instead of redefining the database objects in Employee, Employee
will be declared a subclass of DBAccess and inherit them. (We will have to modify DBAccess a little.) If any other
classes need database access, they will also be defined as subclasses of DBAccess. This is going to save you a lot of
typing and errors.
Finally, we are going to modify the employee application to provide the ability to insert, update, and display
employee information stored in TNTDB. When a user selects the Employee Application option from AppOptions
(see Figure 10-10 ), the new database options will be displayed in a frame called EmpOptions (see Figure 10-11 ).
Figure 10-10.
Figure 10-11.
 
Search WWH ::




Custom Search