• Post Reply Bookmark Topic Watch Topic
  • New Topic

A problem about JTable's model

 
Vince Cheung
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • 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
 
Eddie Vanda
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!