1 Replies - 1140 Views - Last Post: 07 August 2009 - 06:58 PM Rate Topic: -----

#1 hitesh70  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 07-August 09

how to show sql database record in jtabke?

Post icon  Posted 07 August 2009 - 06:35 AM

I am working in a project.I need to show mysql database record in Jtable.I dont know how to do it.Can we display Jtable record by array?If we can,How to display it? If you hava any link, most welcome.Please help me out.
Is This A Good Question/Topic? 0
  • +

Replies To: how to show sql database record in jtabke?

#2 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8328
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: how to show sql database record in jtabke?

Posted 07 August 2009 - 06:58 PM

JTable are just a GUI stuff
they depend on a TableModel that returns how to display stuff at row R column C
you can store the data returned by your ResultSet in whatever you want (Vectoir, ArrayList, Array, LinkedList...)
and have your TableModel to return what is to be displayed
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1