Hi all,
I want to create table/grid using lwuit in tabbedpane.i need urgently for my application..can anybody give me the source code??
i already add some coding for that.but i got some error in defaulttable model...
Here that code and error:
TableModel model = new DefaultTableModel(
new
String[] {"Unedit.", "Editable", "Multiline"},
new Object[][] {
{"Row 1", "Data 1", "Multi-line\ndata"},
{"Row 2", "Data 2", "More multi-\nline data"},
{"Row 3", "Data 3", "Data\non\nevery\nline"},
{"Row 4", "Data 4", "Data (no span)"},
{"Row 5", "Data 5", "More data"},
{"Row 6", "Data 6", "More data"},
}) {
public boolean isCellEditable(int row, int col) {
return col != 0;
}
};
Table table = new Table(model);
table.setScrollable(true);
table.setIncludeHeader(true);
// Add table to form and show
f.addComponent(table);
Error:cannot find symbol
symbol : constructor DefaultTableModel(java.lang.String[],java.lang.Object[][])
location: class javax.swing.table.DefaultTableModel
TableModel model = new DefaultTableModel(
Thanks in Advance,
Vani.P