Package org.openbp.swing.components

Examples of org.openbp.swing.components.JMsgBox


    {
      String title = resourceCollection.getRequiredString("wizard.result.mergedialog.title");
      String text = resourceCollection.getRequiredString("wizard.result.mergedialog.text");
      text = MsgFormat.format(text, writer.getFileName());

      JMsgBox msgBox = new JMsgBox(WizardResultPage.this, title, text, JMsgBox.TYPE_YESNOCANCEL);
      msgBox.setResource(resourceCollection);
      msgBox.setResourcePrefix("wizard.result.mergedialog.");

      msgBox.initDialog();
      SwingUtil.show(msgBox);

      int choice = msgBox.getUserChoice();
      int mode = TemplateWriter.MODE_UNDEFINED;

      if (choice == JMsgBox.TYPE_YES)
      {
        // Yes means merge
View Full Code Here


        ResourceCollection res = getDrawing().getEditor().getPluginResourceCollection();
        String title = res.getRequiredString("placeholder.referencedialog.title");
        String text = res.getRequiredString("placeholder.referencedialog.text");

        JMsgBox msgBox = new JMsgBox(null, title, text, JMsgBox.TYPE_YESNOCANCEL);
        msgBox.setResource(res);
        msgBox.setResourcePrefix("placeholder.referencedialog.");

        msgBox.initDialog();
        SwingUtil.show(msgBox);

        int choice = msgBox.getUserChoice();

        Model model = node.getOwningModel();

        if (choice == JMsgBox.TYPE_YES)
        {
View Full Code Here

        catch (IOException e)
        {
          // Silently ignore
        }

        JMsgBox msgBox = new JMsgBox(null, title, text, msgType);
        msgBox.setResource(res);
        msgBox.setResourcePrefix("node.addparam.");

        msgBox.initDialog();
        SwingUtil.show(msgBox);

        choice = msgBox.getUserChoice();
      }

      // Add to sockets
      for (Iterator it = node.getSockets(); it.hasNext();)
      {
View Full Code Here

TOP

Related Classes of org.openbp.swing.components.JMsgBox

Copyright © 2018 www.massapicom. 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.