// this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
this.setModal(true);
final ClassLoader classLoader = getClass().getClassLoader();
// JavaFXのコンポーネントを貼り付けるPanel
final JFXPanel fxPanel = new JFXPanel();
this.add(fxPanel);
this.init = true;
// JavaFXのThreadを使用すること
FutureTask<Void> futureTask = new FutureTask<Void>(new Callable<Void>() {
@Override
public Void call() throws Exception {
SelectPackagesApplication app = new SelectPackagesApplication();
app.setClassLoader(classLoader);
fxPanel.setScene(app.createScene());
controller = app.getController();
controller.setCloseDialog(new CloseDialog() {
@Override
public void closeByOk() {
chooseState = ChooseState.OK;