Package javax.swing

Examples of javax.swing.JOptionPane.createDialog()


    protected void showMessageDialog(Component parentComponent, Object message, String title,
            int messageType) {
        JOptionPane pane = new JOptionPane();
        pane.setMessageType(messageType);
        pane.setMessage(message);
        JDialog dialog = pane.createDialog(parentComponent, title);
        dialog.setAlwaysOnTop(true); // this is the most important part of the hack
        dialog.setVisible(true);
        dialog.setAlwaysOnTop(false);
        dialog = null;
        pane = null;
View Full Code Here


    protected void showMessageDialog(Component parentComponent, Object message, String title,
            int messageType) {
        JOptionPane pane = new JOptionPane();
        pane.setMessageType(messageType);
        pane.setMessage(message);
        JDialog dialog = pane.createDialog(parentComponent, title);
        dialog.setAlwaysOnTop(true); // this is the most important part of the hack
        dialog.setVisible(true);
        dialog.setAlwaysOnTop(false);
        dialog = null;
        pane = null;
View Full Code Here

      optBtn[0] = new JButton("Continue");
      optBtn[1] = new JButton("Cancel");

      pane = new JOptionPane("Load session done: ", JOptionPane.QUESTION_MESSAGE, JOptionPane.DEFAULT_OPTION, null, optBtn, null);
      final JDialog dialog = pane.createDialog(wizard, "Loading Complete");
      pane.selectInitialValue();

      optBtn[0].addActionListener(new ActionListener() {

        public void actionPerformed(ActionEvent ev) {
View Full Code Here

      optBtn[1] = new JButton("Show Log");
      optBtn[2] = new JButton("Cancel");

      pane = new JOptionPane("# observations processed: " + e.valToRead() + "\n# correct observations " + e.valReaded()
          + "\nTo see errors press Show Log", JOptionPane.QUESTION_MESSAGE, JOptionPane.DEFAULT_OPTION, null, optBtn, null);
      final JDialog dialog = pane.createDialog(InputPanel.this.getParentWizard(), "Loading Complete");
      pane.selectInitialValue();

      optBtn[0].addActionListener(new ActionListener() {

        public void actionPerformed(ActionEvent ev) {
View Full Code Here

      optBtn[1] = new JButton("Show Log");
      optBtn[2] = new JButton("Cancel");

      pane = new JOptionPane("# observations processed: " + e.valToRead() + "\n# correct observations " + e.valReaded()
          + "\nTo see errors press Show Log", JOptionPane.QUESTION_MESSAGE, JOptionPane.DEFAULT_OPTION, null, optBtn, null);
      final JDialog dialog = pane.createDialog(InputPanel.this.getParentWizard(), "Loading Complete");
      pane.selectInitialValue();

      optBtn[0].addActionListener(new ActionListener() {

        public void actionPerformed(ActionEvent ev) {
View Full Code Here

      optBtn[1] = new JButton("Show Log");
      optBtn[2] = new JButton("Cancel");

      pane = new JOptionPane("# observations processed: " + e.valToRead() + "\n# correct observations " + e.valReaded()
          + "\nTo see errors press Show Log", JOptionPane.QUESTION_MESSAGE, JOptionPane.DEFAULT_OPTION, null, optBtn, null);
      final JDialog dialog = pane.createDialog(InputPanel.this.getParentWizard(), "Loading Complete");
      pane.selectInitialValue();

      optBtn[0].addActionListener(new ActionListener() {

        public void actionPerformed(ActionEvent ev) {
View Full Code Here

public class AutoClosingMessageDialog {
  private static JDialog dialog;
 
  public static void showAutoClosingMessageDialog(String message, int showTime) {
    JOptionPane pane = new JOptionPane(message);
    dialog = pane.createDialog("Bilgilendirme !");
    dialog.setIconImage((PSAUtil
        .getImageIconViaRelativePath("picture/psaIcon.png").getImage()));
    Timer timer = new Timer(showTime * 1000, new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
View Full Code Here

            if (debug) {
                System.err.println(message);
            }
            JOptionPane pane =
                new JOptionPane(message, JOptionPane.ERROR_MESSAGE);
            JDialog dialog = pane.createDialog(JSVGViewerFrame.this, "ERROR");
            dialog.setModal(false);
            dialog.show(); // Safe to be called from any thread
        }

        /**
 
View Full Code Here

                super.displayError(message);
            } else {
                JOptionPane pane =
                    new JOptionPane(message, JOptionPane.ERROR_MESSAGE);
                JDialog dialog =
                    pane.createDialog(JSVGCanvas.this, "ERROR");
                dialog.setModal(false);
                dialog.show(); // Safe to be called from any thread
            }
        }
View Full Code Here

                JOptionPane.DEFAULT_OPTION,
                null,
                new String[] {close},
                close);
    
        JDialog dialog = pane.createDialog(null, getString("jwsacc.errorDialog.title"));
        dialog.setResizable(true);
        dialog.setVisible(true);
        boolean result = (copyToClipboardCB == null ? false : copyToClipboardCB.isSelected());
        dialog.dispose();
        return result;
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.