2011-03-16 5 views

答えて

1

この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(); 
    }