如何使用LWUIT-J2ME在表单元格中添加组合框?
|
我想在表格单元格中添加一个组合框以提供拖放选项LWUIT。
我已经使用了这个选项..
private String strCmbBox[] = { \"1\", \"2\", \"3\", \"4\" };
ComboBox comboRdoBox = new ComboBox(strCmbBox);
comboRdoBox.setListCellRenderer(new comboBoxRenderer());
TableModel model = new DefaultTableModel(new String[] { \"Col 1\",
\"Col 2\", \"Col 3\" }, new Object[][] {
{\"Row 1\",new DefaultTableModel(new String[] { \"1\" },
new Object[][] { { comboRdoBox }, { \"lbl\" } }),
\"Row X\" }, { \"Row 2\", \"Row B\", \"Row Y\" },
{ \"Row 3\", \"Row C\", \"Row Z\" },
{ \"Row 4\", \"Row D\", \"Row K\" }, });
Table table = new Table(model);
table.initComponent();
f.addComponent(table);
f.show();
但是它返回单元格中所有属性值的地址;而不是显示组合框
在牢房...
答:
com.sun.lwuit.table.DefaultTableModel@f828ed68
谁能帮我解决这个问题?
没有找到相关结果
已邀请:
2 个回复
豪抱怒掳
财沟项胶