Pregunta

Necesito mostrar el cuadro de diálogo con la lista de búsqueda mientras el usuario presiona el botón. ¿Cómo hacerlo con Lwuit?

¿Fue útil?

Solución

Mira esto Enlace. Aquí se dijo claramente cómo hacer esto en el Form. Lo mismo que tienes que hacer en el Dialog. Mostrar la Dialog mientras hace clic en el botón. Entonces tienes agregar el actionListener para este botón. Ver esta muestra,

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();
  }
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top