jtables

how to display data in a jtable

Page 1 of 1

1 Replies - 509 Views - Last Post: 17 April 2010 - 06:36 AM Rate Topic: -----

#1 frzts  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 16-April 10

jtables

Posted 16 April 2010 - 11:53 PM

please i want to know how to display data into a jtable from an array
which can be somehow dynamic not to static or fixed
Is This A Good Question/Topic? 0
  • +

Replies To: jtables

#2 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2695
  • View blog
  • Posts: 10,556
  • Joined: 15-July 08

Re: jtables

Posted 17 April 2010 - 06:36 AM

Loop through an array using the length attribute (or size() method is ArrayLists).
for (int i = 0; i < array.length; i++) {
    // Add array index to JTable
}



However next time, please respect our rules:
[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1