package eu.ggnet.saft.sample; import eu.ggnet.saft.core.Ui; import eu.ggnet.saft.core.UiCore; import eu.ggnet.saft.sample.support.MainPanel; import eu.ggnet.saft.sample.support.RevenueReportSelectorPane; /** * Opening a JavaFX Pane as popup Dialog, blocking the hole application. * * @author oliver.guenther */ public class SwingChoiceJavaFx { public static void main(String[] args) { UiCore.startSwing(() -> new MainPanel()); // JavaFX Pane in Swing Dialog. Ui.exec(Ui.choiceFx(RevenueReportSelectorPane.class) .onOk(v -> { System.out.println(v); return null; }) ); } }