Results 1 to 6 of 6
Thread: Data not refreshing in Jtable
- 03-22-2011, 02:59 PM #1
Member
- Join Date
- Feb 2011
- Posts
- 84
- Rep Power
- 0
Data not refreshing in Jtable
Hi,
I am trying to refresh my Jtable with the new data.The data is fetched correctly but is not displayed in the Jtable.My jtable still shows the old data.
I have initiated a new object for my table model and then set it as well.
Can some one plese help what could be the issue?
Thanks,
- 03-22-2011, 03:31 PM #2
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,146
- Rep Power
- 5
Thats all that is required, assuming you create the new model properly.Java Code:table.setModel( theNewModel );
- 03-22-2011, 03:37 PM #3
Member
- Join Date
- Feb 2011
- Posts
- 84
- Rep Power
- 0
Thanks for the reply
I have done that but still its not refreshing.and checked that the model is also set properly.
Thanks,
- 03-22-2011, 03:43 PM #4
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,146
- Rep Power
- 5
Then you don't have a proper reference to the table that you are trying to update. Maybe you hava class and local variable of the same name. Maybe you created two tables and only added one to the GUI.
If you need more help then post your SSCCE that demonstrates the problem.
- 03-22-2011, 05:21 PM #5
Member
- Join Date
- Feb 2011
- Posts
- 84
- Rep Power
- 0
Thanks for your help but my issue is still not solved.
Screen 1 shows a table with 100s of record.There is a search button clicking on search button opens a dialog box and I can search for records on screen 1when a record is searched the new record is not showing up its still showing those 100 records.
I cannot post the code bcoz of security reasons...
Thanks,
- 03-22-2011, 09:43 PM #6
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,146
- Rep Power
- 5
Similar Threads
-
Refreshing Jtable once again...
By Norther in forum AWT / SwingReplies: 2Last Post: 06-29-2010, 07:46 PM -
Update JTable data
By DC200 in forum AWT / SwingReplies: 8Last Post: 03-30-2010, 10:10 PM -
how to retrieve data from other jtable..
By javanewbie2010 in forum AWT / SwingReplies: 1Last Post: 02-12-2010, 08:32 AM -
Save JTable Data
By anilkumar_vist in forum New To JavaReplies: 0Last Post: 02-08-2010, 12:11 PM -
how to refresh data of the JTable
By paty in forum JDBCReplies: 3Last Post: 08-17-2008, 12:01 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks