The Components Of Codename One Here is a trivial sample of using the standard table component:
Form hi = new Form("Table", new BorderLayout()); TableModel model = new DefaultTableModel(new String[] {"Col 1", "Col 2", "Col 3"}, new Object[][] { {"Row {"Row {"Row {"Row }) {
1", 2", 3", 4",
"Row "Row "Row "Row
A", B", C", D",
"Row "Row "Row "Row
X"}, Y"}, Z"}, K"},
public boolean isCellEditable(int row, int col) { return col != 0; } }; Table table = new Table(model); hi.add(BorderLayout.CENTER, table); hi.show();
203