• Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding JTable

 
adeeb alexander
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can any body please tell how can a JTable refreshed means i have a application with cardlayout at first card there is JTable and at second one i have text fields an all required component to insert data in table but when i see the first card containing the JTable it is not being updated. I should again restart the application. So please someone help.
 
Rob Spoor
Sheriff
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
revalidate() and repaint() should help.

However, a good TableModel should fire events for the JTable when anything changes. What type of TableModel are you using? And how do you insert your data?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!