如何使用 LWUIT 显示带有搜索列表的对话框?

发布于 2024-10-22 09:17:45 字数 48 浏览 2 评论 0原文

我需要在用户按下按钮时显示带有搜索列表的对话框。如何使用 LWUIT 做到这一点?

I need to show the dialog with searching list while user pressing the button. How to do it with LWUIT?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

反差帅 2024-10-29 09:17:45

请参阅此链接。这里明确的说了如何在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();
  }

See this link. Here clearly said how to do this in the Form. Same thing you have to do on the Dialog. Show the Dialog while clicking the button. So you have add the actionListener for this button. See this sample,

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();
  }
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文