This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JTable Binding problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "JTable Binding problem" Watch "JTable Binding problem" New topic
Author

JTable Binding problem

Mahesh Kedari
Ranch Hand

Joined: Nov 28, 2009
Posts: 109
Hey all,
I need some help for handling a JTable binding in multi user application.
Problem Description:
Bind the JTable with one of the table in database. And run two instances of this application. Insert the record from one session and Refresh the table in other session. It gives below Error stack.



Function performing refresh action is as given below.

Please help me figure out where am I going wrong.
Thanks


Regards,
Mahesh Kedari - Fidus Technologies Ltd.
Mahesh Kedari
Ranch Hand

Joined: Nov 28, 2009
Posts: 109
Got the solution guys.....
Just made the list used in this component as observable.
Steps:
1: In Net-Beans go to properties of list that you are using for binding the table.
2: Check observable flag.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JTable Binding problem
 
Similar Threads
populate data from database into a jtable
updating database cause error
Validate JTable edit
Deleting Row from JTable
jTable, Table Models, Data : Can anyone explain how to use them?