use of tryout.stub.GuardianStub in project dwoss by gg-net.
the class CategoryProductListEditTryout method main.
/**
* The main() method is ignored in correctly deployed JavaFX application.
* main() serves only as fallback in case the application can not be
* launched through deployment artifacts, e.g., in IDEs with limited FX
* support. NetBeans ignores main().
*
* @param args the command line arguments
* @throws java.lang.InterruptedException
*/
public static void main(String[] args) throws InterruptedException {
Dl.remote().add(UniqueUnitAgent.class, new UniqueUnitAgentStub());
Dl.local().add(Guardian.class, new GuardianStub());
JButton close = new JButton("Schliessen");
close.addActionListener(e -> Ui.closeWindowOf(close));
JButton run = new JButton("OpenUi");
run.addActionListener(ev -> {
Ui.exec(() -> {
Ui.build().fxml().show(CategoryProductListController.class);
});
});
JTextField textField = new JTextField();
textField.setPreferredSize(new Dimension(200, 30));
textField.setDragEnabled(true);
JPanel p = new JPanel();
p.add(run);
p.add(textField);
p.add(close);
UiCore.startSwing(() -> p);
}
Aggregations