lwuit 中的动态表
如何在 lwuit 中创建动态表
TableModel model = new DefaultTableModel(
new String[]{"A", "B", "Call Avg"},
new Object[][]{
{"0", "50", "0.00"},
{"0", " " + "2", "0.00"},
{"0", "52", "0.00"},})
{
public boolean isCellEditable(int row, int col) {
return col != 0 ;
}
};
Table table = new Table(model);
这是针对静态的。我想动态创建行数和列数..请帮助
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅此示例代码。我使用此代码使用 LWUIT 创建了动态表。
See this sample code. I have created dynamic table with LWUIT using this code.