0

JideOSS3.1.1を使用しています

CheckBoxListを使用しているときに、getCheckBoxListSectionModelが欠落していることがわかりましたか?それはドキュメントにありますが、ドット演算子はそのようなことを明らかにしていません。これは有料版でしか手に入らないのかな?

ただし、これを使用してもgetSelectionModel()、選択したイベントは発生しません。

    Object[] options = {"This Element","Similar Elements"};
            CheckBoxListWithSelectable checkboxlist = new CheckBoxListWithSelectable(options);
            int result = JOptionPane.showConfirmDialog(rootPane, checkboxlist, 
                       "Please Select Action(s) For This Element", JOptionPane.OK_CANCEL_OPTION);

            checkboxlist.getSelectionModel().addListSelectionListener(new ListSelectionListener() {

                @Override
                public void valueChanged(ListSelectionEvent e) {
                    // TODO Auto-generated method stub
                    System.out.println("selected");
                }
            });
4

1 に答える 1

1

私はこの方法を古いバージョン(2.10。*)で問題なく使用しています。しかし、3.1.1のデポを見ると、ソースにあります。

また、質問のつづりが間違っています。getCheckBoxListSelectionModel()をお探しの方もいらっしゃると思います。

于 2012-01-31T21:59:53.737 に答える