• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

A problem about JTable's model

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Somebody asked me a question "What's your JTable's model?".
I can't understand and how should I answer to him?
I set up a MyTableModel extends an AbstractTableModel, my JTable used it.

MyTableModel myTableModel = new MyTableModel();
JTable searchResult = new JTable(myTableModel);


How should I answer his question?
Please give me help, thanks
 
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Vince,

I must be missing something because to me the answer is simply "MyTableModel" which you wrote and in which you must have provided vectors or arrays for storing your data (as opposed to DefaultTableModel which does itself store table data).

Ed
 
reply
    Bookmark Topic Watch Topic
  • New Topic