hi

m currently working with using jtables in netbeans ide 6.5
not able to find appropriate solutions to following qs:
1. how to work with foreign keys in jtable-
scenario - customer master table has custId n custName whereas purchase transaction table has purchaseId as priamry key, custId as foreign key in it?? but after binding custId value is seen whereas i want to see custName values??? m using javaDB as the database.

2. how to get the values in jtable in descending order-that is the last inserted value on click of a button shuld b seen first but its displayed in the end of the table...??