Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic


joey phillip
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have implemented MytableModel class like this
public class MyTableModel extends AbstractTableModel
Vector data = new Vector();
public MyTableModel(String [] header) { ....}
public int getColumnCount(){...}
public Object getValueAt(int row, int col) {
DataInfo dinfo=(DataInfo) data.elementAt(row);
return dinfo.getValues()[col].trim();
public void setData(Vector v) {;
Is it Ok if i use DataInfo inside MyTableModel or it supposed to be more generic.

Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!