Package org.netbeans.validation.api.ui

Examples of org.netbeans.validation.api.ui.ValidationPanel.showOkCancelDialog()


    public void configure() {
        ScreenshotSettingsPanel panel = new ScreenshotSettingsPanel();
        panel.setup(this);
        ValidationPanel validationPanel = ScreenshotSettingsPanel.createValidationPanel(panel);
        if (validationPanel.showOkCancelDialog(NbBundle.getMessage(ScreenshotMaker.class, "ScreenshotMaker.configure.title"))) {
            panel.unsetup(this);
            return;
        }
//        DialogDescriptor dd = new DialogDescriptor(validationPanel, NbBundle.getMessage(ScreenshotMaker.class, "ScreenshotMaker.configure.title"));
//        Object result = DialogDisplayer.getDefault().notify(dd);
View Full Code Here


      group.add(f, Validators.REQUIRE_NON_EMPTY_STRING,
              Validators.NO_WHITESPACE,
              Validators.URL_MUST_BE_VALID);
      panel.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
      //Convenience method to show a simple dialog
      if (panel.showOkCancelDialog("URL")) {
        System.out.println("User clicked OK.  URL is " + f.getText());
        System.exit(0);
      } else {
        System.err.println("User clicked cancel.");
        System.exit(1);
View Full Code Here

    public void configure() {
        ScreenshotSettingsPanel panel = new ScreenshotSettingsPanel();
        panel.setup(this);
        ValidationPanel validationPanel = ScreenshotSettingsPanel.createValidationPanel(panel);
        if (validationPanel.showOkCancelDialog(NbBundle.getMessage(ScreenshotMaker.class, "ScreenshotMaker.configure.title"))) {
            panel.unsetup(this);
            return;
        }
//        DialogDescriptor dd = new DialogDescriptor(validationPanel, NbBundle.getMessage(ScreenshotMaker.class, "ScreenshotMaker.configure.title"));
//        Object result = DialogDisplayer.getDefault().notify(dd);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.