public class EBayOrgaMainDTableModel extends AbstractTableModel
{
private boolean DEBUG = false;
private String[] columnNames = { "Nr.", "eBayName", "Name", "Vorname", "Ort", "Email",
"Betrag", "Porto", "Bezahlt", "Verschickt", "Bewertet" };
private Object[][] data =
{
{ new Integer(0), "","","","","", new Integer(0), new Integer(0), new Boolean(false), new Boolean(false), new Boolean(false) },
{ new Integer(1), "","","","","", new Integer(0), new Integer(0), new Boolean(false), new Boolean(false), new Boolean(false) },
{ new Integer(2), "","","","","", new Integer(0), new Integer(0), new Boolean(false), new Boolean(false), new Boolean(false) },
{ new Integer(3), "","","","","", new Integer(0), new Integer(0), new Boolean(false), new Boolean(false), new Boolean(false) },
{ new Integer(4), "","","","","", new Integer(0), new Integer(0), new Boolean(false), new Boolean(false), new Boolean(false) },
{ new Integer(5), "","","","","", new Integer(0), new Integer(0), new Boolean(false), new Boolean(false), new Boolean(false) },
{ new Integer(6), "","","","","", new Integer(0), new Integer(0), new Boolean(false), new Boolean(false), new Boolean(false) },
{ new Integer(7), "","","","","", new Integer(0), new Integer(0), new Boolean(false), new Boolean(false), new Boolean(false) },
};
public int getColumnCount()
{
return columnNames.length;
}
public int getRowCount()
{
return data.length;
}
public String getColumnName(int col)
{
System.out.println(columnNames[col]);
return columnNames[col];
}
public Object getValueAt(int row, int col)
{
return data[row][col];
}
/* Checkboxen in Spalten setzen! Funktionsweise leider noch -> Es geht einfach... */
public Class getColumnClass(int c)
{
return getValueAt(0, c).getClass();
}
}