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");
}
});