This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JDBC and the fly likes binding two JTables to each other Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "binding two JTables to each other" Watch "binding two JTables to each other" New topic
Author

binding two JTables to each other

Gokcen Guner
Greenhorn

Joined: May 23, 2009
Posts: 9
I have two JTables in a form. Ive created it with palette function of NetBeans 6.5. I've binded them to database tables. These 2 database tables are connected with foreign keys.
TableA has a foreign key that is primary key of TableB.
My problem is that:
I couldnt construct the master/detail relation between them. For exapmle I want to see related rows in detail table when I select a row in master one. How can I do that?

Please delete this thread. I should have posted it to GUI forum...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: binding two JTables to each other
 
Similar Threads
automatically delete or insert
Binding Database Tables in Desktop App
Master - Detail Tables
using hibernate with tables have no relation
What effects by using a lot of foreign keys?