我需要在用户按下按钮时显示带有搜索列表的对话框。如何用 LWUIT 做到这一点?
问问题
731 次
1 回答
1
请参阅此链接。这里清楚的说了怎么做Form
。您必须在Dialog
. Dialog
单击按钮时显示。所以你已经actionListener
为这个按钮添加了。看到这个样本,
Button button = new Button("Button");
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
Dialog dialog = new Dialog();
// Do here for searching list. Refer that link.
dialog.show();
}
于 2011-03-16T05:59:42.690 回答