C
Colin
I am using Sun's Swing Tutorial, and the page about the JTable seems
to indicate that if I define a class that extends AbstractTableModel,
I can then just write "JTable table = new JTable(new myTableModel());"
and the table should be displayed when I add it to a panel or frame.
I have done this, and for some reason my table has no column names at
the top. My class that extends AbstractTableModel implements the
getColumnName(int) function. The data cells are fine, I just need to
display the column headers.
Thanks,
Colin
to indicate that if I define a class that extends AbstractTableModel,
I can then just write "JTable table = new JTable(new myTableModel());"
and the table should be displayed when I add it to a panel or frame.
I have done this, and for some reason my table has no column names at
the top. My class that extends AbstractTableModel implements the
getColumnName(int) function. The data cells are fine, I just need to
display the column headers.
Thanks,
Colin