簡體   English   中英

如何使用LWUIT顯示帶有搜索列表的對話框?

[英]How to show dialog with searching list using LWUIT?

我需要在用戶按下按鈕時顯示帶有搜索列表的對話框。 如何使用LWUIT做到這一點?

看到這個鏈接 這里在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();
  }

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM