Search in sources :

Example 1 with DocumentAdressUpdateViewOkCanceler

use of eu.ggnet.saft.sample.support.DocumentAdressUpdateViewOkCanceler in project dwoss by gg-net.

the class SwingPopupSwingParentSwing method main.

public static void main(String[] args) {
    UiCore.startSwing(() -> new MainPanel());
    final JDialog d = new JDialog(SwingCore.mainFrame(), "ExtraDialog", Dialog.ModalityType.MODELESS);
    Label label = new Label("Ein extra Dialog");
    d.getContentPane().add(label);
    d.pack();
    d.setLocation(500, 500);
    d.setVisible(true);
    String adress = "Hans Mustermann\nMusterstrasse 22\n12345 Musterhausen";
    // Swing Panel in Swing Dialog
    Ui.exec(() -> {
        Ui.build(label).swing().eval(() -> adress, () -> new DocumentAdressUpdateViewOkCanceler()).opt().ifPresent(System.out::println);
    });
}
Also used : MainPanel(eu.ggnet.saft.sample.support.MainPanel) Label(java.awt.Label) JDialog(javax.swing.JDialog) DocumentAdressUpdateViewOkCanceler(eu.ggnet.saft.sample.support.DocumentAdressUpdateViewOkCanceler)

Aggregations

DocumentAdressUpdateViewOkCanceler (eu.ggnet.saft.sample.support.DocumentAdressUpdateViewOkCanceler)1 MainPanel (eu.ggnet.saft.sample.support.MainPanel)1 Label (java.awt.Label)1 JDialog (javax.swing.JDialog)1