Package javax.swing

Examples of javax.swing.JDialog.show()


            }
            JErrorPane pane =
                new JErrorPane(ex, JOptionPane.ERROR_MESSAGE);
            JDialog dialog = pane.createDialog(JSVGViewerFrame.this, "ERROR");
            dialog.setModal(false);
            dialog.show();
        }

        /**
         * Displays a message in the User Agent interface.
         * The given message is typically displayed in a status bar.
View Full Code Here


      final GfrColorChooser ccr = new GfrColorChooser();

      GfrColorTracker ctrOk = new GfrColorTracker(ccr);
      JDialog dialog = createDialog(component, title, true, ccr, ctrOk, null);

      dialog.show(); // blocks until user brings dialog down...

      return ctrOk.getColor();
   }

   static class GfrColorTracker implements ActionListener, Serializable
View Full Code Here

                    working.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
                    JLabel lab = new JLabel(resource
                            .getString("ExportExportingMessage"));
                    working.getContentPane().add(lab, "Center");
                    working.pack();
                    working.show();
                    Thread.yield();

                    lastDir = fd.getDirectory();
                    try {
                        PrintWriter out = new PrintWriter(new BufferedWriter(
View Full Code Here

        AffineTransformTracker tracker = new AffineTransformTracker(pane);
        JDialog dialog = new Dialog(cmp, title, true, pane, tracker, null);
        dialog.addWindowListener(new Closer());
        dialog.addComponentListener(new DisposeOnClose());

        dialog.show(); // blocks until user brings dialog down...

        return tracker.getAffineTransform();
    }
   
    /**
 
View Full Code Here

                        pluginRegistry.addPlugin(plugin);
                        plugin.activateOptions();
                        MessageCenter.getInstance().addMessage("Plugin '" + plugin.getName() + "' started");
                      }
                    });
                  dialog.show();
                } catch (Exception e1) {
                  e1.printStackTrace();
                  MessageCenter.getInstance().getLogger().error(
                    "Failed to create the new Receiver dialog", e1);
                }
View Full Code Here

        panel.okPanel.getOkButton().addActionListener(al);
        panel.okPanel.getCancelButton().addActionListener(al);

        dialog.pack();

        dialog.show();
    }

    /**
     * @return Returns the okPanel.
     */
 
View Full Code Here

          Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
          dialog.setLocation(
            (screenSize.width / 2) - (dialog.getWidth() / 2),
            (screenSize.height / 2) - (dialog.getHeight() / 2));
          dialog.show();

          dialog.dispose();

          applicationPreferenceModel.setShowNoReceiverWarning(
            !noReceiversWarningPanel.isDontWarnMeAgain());
View Full Code Here

      }
      ta.setText(errMsg.toString());
     
      d.setSize(440,150);
      d.setLocationRelativeTo(this);
      d.show();
      return false;
    }
   
    return true;
  }
View Full Code Here

    Dimension ad = aboutDlg.getSize();
   
    p = new Point(p.x + (d.width-ad.width) / 2, p.y + (d.height - ad.height) / 2);
    aboutDlg.setLocation(p);
   
    aboutDlg.show();
  }
 
  public void export2SVG(){
/*    try {
      SVGGenerator.main(getProcessDefinitionDesigner().getComponent());
View Full Code Here

        JDialog dialog = new JDialog(AnnotationViewerDialog.this, "Annotation Results for "
                + fileName + " in " + inputDirPath); // JMP
        dialog.getContentPane().add(viewer);
        dialog.setSize(850, 630);
        dialog.pack();
        dialog.show();
      } else {
        CAS defaultView = cas.getView(CAS.NAME_DEFAULT_SOFA);
        if (defaultView.getDocumentText() == null) {
          displayError("The HTML and XML Viewers can only view the default text document, which was not found in this CAS.");
          return;
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.