Dialogはい、いいえの2つのボタンを使用して作成し、アクションリスナーを追加しました。問題は、Dialog作成したボタンを非表示にするボタンがないことです。
コードは次のようになります。
dialog = new Dialog(title);
        dialog.setDialogType(Dialog.TYPE_CONFIRMATION);
        ta = new TextArea(text);
        ta.getStyle().setBorder(Border.createEmpty());
        ta.setEditable(false);
        yesCommand = new Button("YES");
        noCommand = new Button("NO");
        yesCommand.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent ae) {
                LGBMainMidlet.getLGBMidlet().notifyDestroyed();
            }
        });
        noCommand.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent ae) {
                Logger.Log("Bye Bye");
                dialog = null;
                System.gc();
            }
        });
        dialog.addComponent(ta);
        dialog.addComponent(yesCommand);
        dialog.addComponent(noCommand);
        dialog.show();
コードが機能していません。問題は何ですか?
BN使用dialog.dispose()しましたが、アプリケーション全体を終了します