Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

jtable not displayed

Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

i tried to display data in a jtable

sometime i can have data to feed the jtable, sometime not

if i don't have data to feed table, i would like to have the column name displayed

my jtable class

my dataModel

my class test

i added

to the constructof of AttributeTableModel

do you think is better to do this or to do something like?

if i don't add any attribute to the arrayList, i see the column name.. but there are no row... ( i would like to see one row... user can begin to enter data)

if i pass some attribute to the arrayList, i see the data and column name

in both case, i don't know how to add a row

any idea?

Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic