Posted Monday, April 5, 2004 @ 11:48:49
Its very simple to load an array
DBTable dBTable1 = new DBTable();
String[][] myArray = { {"A", "B"}, {"C", "D"}};
dBTable1.refresh(myArray);
After loading, optionally you can set column properties as below
Column c = dBTable1.getColumn(0);
c.setReadOnly(true);
c.setType(Types.NUMERIC);
c.setPrecision(7);
//we want the column header of this column to be "Order No". In this header we want the
//"Order" to be in first line & "No." to be in second line. To get this we have to separate
//the Order & No. by a newline character
c.setHeaderValue("Order\nNo.");
//we want the display width of the column to be 60 (this is not the maximum data length)
c.setPreferredWidth(60);