Package javax.swing

Examples of javax.swing.JOptionPane.createDialog()


        selectedColors = null;
      }
    });
    Object[] options = { btnGenerate, btnCancel };
    JOptionPane optionPane = new JOptionPane(p0, JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, options, options[1]);
    dlg = optionPane.createDialog("Generating deck");
    dlg.setVisible(true);
    dlg.dispose();

    if (selectedColors != null) {
      buildDeck();
View Full Code Here


    ontologyExplorer = new OntologyExplorer();
    ontologyExplorer.addPropertyChangeListener(this);
   
    JOptionPane explorer = new JOptionPane(ontologyExplorer,
    JOptionPane.PLAIN_MESSAGE,JOptionPane.OK_CANCEL_OPTION);
    JDialog d = explorer.createDialog(wizard,"Ontology Explorer ["+getSelectedOntology()+"]");
    d.setModal(true);
    d.setResizable(true);
    ontologyExplorer.setBusy(true);
    (new Thread(new Runnable(){
      public void run(){
View Full Code Here

    ontologyExplorer = new OntologyExplorer();
    ontologyExplorer.addPropertyChangeListener(this);
   
    JOptionPane explorer = new JOptionPane(ontologyExplorer,
    JOptionPane.PLAIN_MESSAGE,JOptionPane.OK_CANCEL_OPTION);
    JDialog d = explorer.createDialog(wizard,"Ontology Explorer ["+getSelectedOntology()+"]");
    d.setModal(true);
    d.setResizable(true);
    ontologyExplorer.setBusy(true);
    (new Thread(new Runnable(){
      public void run(){
View Full Code Here

  public static JDialog createCancelDialog(final Component component, final String titel, final String text) {
        final String[] options = { TextUtils.getText("cancel") };
      final JOptionPane infoPane = new JOptionPane(text, JOptionPane.PLAIN_MESSAGE, JOptionPane.DEFAULT_OPTION, null,
          options);
      JDialog dialog = infoPane.createDialog(component, titel);
      dialog.setModal(false);
      return dialog;
    }

  public static void addTitledBorder(final JComponent c, final String title, final float size) {
View Full Code Here

      @Override
      public void selectInitialValue() {
        textArea.requestFocusInWindow();
      }
    };
    final JDialog edit = editPane.createDialog(null, TextUtils.getText("plugins/latex/LatexNodeHook.editorTitle"));
    edit.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
    // set content and rendering for textArea
    textArea.setContentType("text/groovy"); /* text/groovy is from JSyntaxPane */
    textArea.setText(oldEquation);
    //make Alt+ Enter confirm the dialog
View Full Code Here

    if(selectAll){
      textEditor.selectAll();
    }
    String title = TextUtils.getText("plugins/ScriptEditor/window.title");
    final JOptionPane optionPane = new JOptionPane(scrollPane, JOptionPane.QUESTION_MESSAGE, JOptionPane.OK_CANCEL_OPTION);
    final JDialog dialog = optionPane.createDialog(showEditorBtn, title);
    dialog.setResizable(true);
    if(bounds != null)
      dialog.setBounds(bounds);
    dialog.setVisible(true);
    bounds = dialog.getBounds();
View Full Code Here

    pane.setOptions(options);
    pane.setOptionType(0);
    pane.setMessageType(JOptionPane.ERROR_MESSAGE);
    pane.setMessage(mensage);
    pane.setSize(260, 260);
    JDialog dialog = pane.createDialog(null, "Error");
    dialog.show();

  }

  private boolean cumpleCondicion(Object[] datos,
View Full Code Here

            pane.setOptions(options);
            pane.setOptionType(0);
            pane.setMessage("Debe seleccionar una fila para eliminar");
            pane.setMessageType(JOptionPane.INFORMATION_MESSAGE);
            JDialog dialog = pane.createDialog(componenteRef.getParentFrame(), "Eliminar Elemento");

            result = -2;
            dialog.setModal(true);
            dialog.show();
        }
View Full Code Here

                pane.setOptions(options);
                pane.setOptionType(0);
                pane.setMessage("Confirma que desea Eliminar el elemento seleccionado? ");
                pane.setMessageType(JOptionPane.QUESTION_MESSAGE);
                JDialog dialog = pane.createDialog(componenteRef.getParentFrame(), "Eliminar Elemento");

                dialog.setModal(true);
                dialog.show();
                Object selectedValue = pane.getValue();   // no
View Full Code Here

            pane.setOptions(options);
            pane.setOptionType(0);
            pane.setMessage("Debe seleccionar una fila para modificar");
            pane.setMessageType(JOptionPane.INFORMATION_MESSAGE);
            JDialog dialog = pane.createDialog(componenteRef.getParentFrame(), "Modificar Elemento");

            dialog.setModal(true);
            dialog.show();
        }
        else
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.