[HELP]Refreshing JTable connected to database - PINOYDEN


Go Back   PINOYDEN > PC Zone > Programming

Welcome to PinoyDen Forums.

You are currently browsing our forum as a guest, please consider registering to get full access to all of our forum features, download free games, get help for your pc and cellphone problems and learn new mobile tricks like how to browse the internet using your cellphone for free. All that and more, so what are you waiting for, JOIN us now!!!! Click here to register...
 Topic: [HELP]Refreshing JTable connected to database  (Read 105 times)
0 Members and 1 Guest are viewing this topic.
Pages: [1]   Go Down
12-30-12 10:23 PM
  • Jr. Member
  • **
  • Offline
 
Posts: 167
Thank You: 2
Reputation: 0
gibsonslasher22 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Help naman po.. Paano po ba yung tamang pagupdate/refresh ng JTable(abstractTableModel)? Salamat.
Reply #1
12-31-12 02:19 PM
  • Semi-Newbie
  • *
  • Male Offline
 
Posts: 41
Thank You: 10
Reputation: 0
tabs5894 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
MyModel tblModel = new MyModel(); // Assuming na ito yung class na naka extends sa AbstractTableModel class

Simply call the fireTableStructureChanged(); method ng AbstractTableModel para iupdate or to refresh yung JTable mo.

e.g.
Code: [Select]
tblModel.fireTableStructureChanged();
Reply #2
12-31-12 07:33 PM
  • Jr. Member
  • **
  • Offline
 
Posts: 167
Thank You: 2
Reputation: 0
gibsonslasher22 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Hindi ba advisable na null yung gamiting layout sa JTable?
Reply #3
12-31-12 07:39 PM
  • Semi-Newbie
  • *
  • Male Offline
 
Posts: 41
Thank You: 10
Reputation: 0
tabs5894 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Panung null yung layout ng JTable?

post mo codes mo bro para madali ka matulungan.
Reply #4
01-01-13 09:58 AM
  • Jr. Member
  • **
  • Offline
 
Posts: 167
Thank You: 2
Reputation: 0
gibsonslasher22 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Dito lang ako nkkbukas ng PD e. Sa desktop ayaw gateway timeout. Try ko.
Pages: [1]   Go Up
 



All dates are GMT+8:00. The date now is 05-23-13 08:03 PM
WWW.PINOYDEN.COM.PH does not store any files on it's server, we are just indexing other sites contents!
WWW.PINOYDEN.COM.PH [Ang Tambayan ng pinoy!] © copyright 2008-2009 All Rights Reserved.
Contents published on www.PinoyDen.com.ph requires permission for reprint.

Page created in 0.142 seconds with 22 queries.