• Subject: RE: How do you select from a JTable?
  • From: Pete Hall <peteh@xxxxxxxxxx>
  • Date: Sat, 24 Oct 1998 22:14:01 -0500

At 00:02 10/24/1998 , Chris Jewell wrote:
>There's also a paucity of examples of this very common requirement shipped
>with VisualAge. So, all in all, I'm a little disappointed.


There's an example project at 
http://www7.software.ibm.com/vad.nsf/Data/Document2550 called "VADD - VisualAge 
for Java Version 2 Tutorial -- Part 2: Data Access Beans" that I used to get 
started. It uses DB2, which I don't have installed at home, nor do I have 
access to my AS/400 from here, so I used the example as a guide and connected 
to an Access 2.0 database on my PC just for grins. Outside of the fact that the 
SQL syntax is a little different (mainly || doesn't work for concatenations), I 
was able to figure it out fairly easily. The only place that the instructions 
really fall down is explaining how to specify the URL for the connection 
object. For the JDBC-ODBC bridge, it's jdbc:odbc:dataSourceName. Like I said in 
my original post, this worked very well, but once I had data in the JTable, I 
couldn't figure out how to select a row and use it to do an additional select, 
which would obviously be a very necessary thing for a real application. The 
example was apparently written to avoid this functionality. I thought at the 
time it seemed a little contrived, and I'm beginning to think there may have 
been a reason...

Pete Hall

| This is the Midrange System Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.