1
我需要在用户按下按钮时显示搜索列表对话框。如何用LWUIT做到这一点?如何使用LWUIT显示对话框与搜索列表?
我需要在用户按下按钮时显示搜索列表对话框。如何用LWUIT做到这一点?如何使用LWUIT显示对话框与搜索列表?
看到这个link。这里明确说明了如何在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();
}