Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to update JTable??  RSS feed

 
ali rafiq
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i made a simple database Dairy ..the data is shown in a JTable .. i have problem to update.. but i m doing updating like this process
1> at the button of refresh i just apply this
setVisible(false);
new Dairy();
it works to update but frame dispose..in reload again..i need to reload Table..
i dont like this process.. but its work fine any method to reload table

if u dont understand me plz reply me i dont speak english very well
 
ali rafiq
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
forget to tell u that
update for why
if i add new person telephone number.. it dosnt shown in a table.. i have to restart this progame to see this
 
aminur rashid
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
close the cell editor once u click the update button.this will update the table and call the repaint();
validate();
after all the processing
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!