19.09.2015 Views

Prentice.Hall.Introduction.to.Java.Programming,.Brief.Version.9th.(2014).[sharethefiles.com]

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 41.8<br />

The Course table is displayed in a JTable using ResultSetTableModel.<br />

41.4**<br />

(Revise SQLClient.java) Rewrite Listing 41.1, SQLClient.java, <strong>to</strong><br />

display the query result in a JTable, as shown in Figure 41.9.<br />

Figure 41.9<br />

The query result is displayed in a JTable.<br />

41.5***<br />

(Edit table using RowSet) Rewrite Listing 41.10 <strong>to</strong> add an Insert<br />

but<strong>to</strong>n <strong>to</strong> insert a new row and an Update but<strong>to</strong>n <strong>to</strong> update the row.<br />

41.6*<br />

(Display images from database) Write a program that uses JTable <strong>to</strong><br />

display the Country table created in Listing 41.11,<br />

S<strong>to</strong>reAndRetrieveImage.java, as shown in Figure 41.10.<br />

Figure 41.10<br />

38

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!