Search in sources :

Example 1 with GuardianStub

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);
}
Also used : GuardianStub(tryout.stub.GuardianStub) Dimension(java.awt.Dimension) UniqueUnitAgentStub(tryout.stub.UniqueUnitAgentStub)

Aggregations

Dimension (java.awt.Dimension)1 GuardianStub (tryout.stub.GuardianStub)1 UniqueUnitAgentStub (tryout.stub.UniqueUnitAgentStub)1