Examples of showDialog()


Examples of de.netsysit.view.ListSelectionDialog.showDialog()

                    for (int i = 0; i < lists.size(); i++) {
                        listnames[i] = lists.get(i);
                    }

                    ListSelectionDialog lsd = new ListSelectionDialog();
                    lsd.showDialog(listnames);
                    ReceiverListModel selection = (ReceiverListModel) lsd.getResult();

                    if (selection != null) {
                        app.addReceiverList(selection);
                    }
View Full Code Here

Examples of edu.stanford.genetics.treeview.core.FileMruEditor.showDialog()

      menubar.setMenuMnemonic(KeyEvent.VK_R);
      menubar.setMenu(TreeviewMenuBarI.programMenu);
      menubar.addMenuItem("Edit Recent Files...", new ActionListener() {
        public void actionPerformed(ActionEvent actionEvent) {
          FileMruEditor fme = new FileMruEditor(fileMru);
          fme.showDialog(TreeViewFrame.this);
        }
      });
      menubar.setMnemonic(KeyEvent.VK_E);
     
      menubar.addMenuItem("Edit Preferences...", new ActionListener() {
View Full Code Here

Examples of gate.swing.XJFileChooser.showDialog()

      }
      fileChooser.setDialogTitle("Chose the template directory");
      fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
      fileChooser.setResource("application.templatedir." + owner.theTarget.getName());

      if(fileChooser.showDialog(owner,"Choose Directory") == JFileChooser.APPROVE_OPTION) {
        try {
          final File file = fileChooser.getSelectedFile();
          String templateDir = file.getCanonicalPath();
          owner.setTemplateDirName(templateDir,null);
          jLabelTemplateDirPath.setText(templateDir);
View Full Code Here

Examples of ij.gui.GenericDialog.showDialog()

        if (weight>0.99) weight = 0.99;
        gd.addNumericField("Radius (Sigma)", sigma, 1, 6, "pixels");
        gd.addNumericField("Mask Weight (0.1-0.9)", weight,2);
        gd.addPreviewCheckbox(pfr);
        gd.addDialogListener(this);
        gd.showDialog();                        //input by the user (or macro) happens here
        if (gd.wasCanceled()) return DONE;
        if (oldMacro) sigma /= 2.5;
        IJ.register(this.getClass());           //protect static class variables (parameters) from garbage collection
        return IJ.setupDialog(imp, flags);      //ask whether to process all slices of stack (if a stack)
    }
View Full Code Here

Examples of info.unipax.bina.analysis.data.gui.SeriesFilterSettingsDialog.showDialog()

              private boolean approved = false;
 
              @Override
              public void run()
              {
                approved = dialog.showDialog();
              }
            }
 
            DialogRunner runner = new DialogRunner();
 
View Full Code Here

Examples of jSimMacs.display.dialog.ssh.SSHFileChooser.showDialog()

        textField.setText(textFieldText);
      }
    }
    else if (fileChooser instanceof SSHFileChooser) {
      SSHFileChooser sshFc = (SSHFileChooser) fileChooser;
      sshFc.showDialog();
      //sshFc.setLocationRelativeTo(this);
      //sshFc.setVisible(true);
      if(sshFc.isApproval()){
        if(multiSelectionEnabled)
          textField.setText(sshFc.getSelectedFiles());
View Full Code Here

Examples of java.awt.FileDialog.showDialog()

        }
      };
      chooser.setDialogTitle(title);
      chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);

      int returnVal = chooser.showDialog(c, approveButtonText);
      if(returnVal == JFileChooser.APPROVE_OPTION)
        return chooser.getSelectedFile();
    }

    return null;
View Full Code Here

Examples of javafx.stage.DirectoryChooser.showDialog()

        FunctionButton.Function.ADD, new Runnable() {
          @Override
          public void run() {
            final DirectoryChooser dc = new DirectoryChooser();
            dc.setTitle(RS.rbLabel(KEY.WIRELESS_WORKING_DIR));
            final File wdir = dc.showDialog(stage);
            if (wdir != null) {
              textField.setText(wdir.getAbsolutePath());
            }
          }
        });
View Full Code Here

Examples of javax.swing.JColorChooser.showDialog()

    }

    @Action
    public void setBackgroundColor() {
        JColorChooser clr = new JColorChooser();
        maps_color = clr.showDialog(this.getComponent(), "Wybierz kolor tła", maps_color);
        Paint(canvas1.getGraphics());
    }

    @Action
    public void setPawnColor() {
View Full Code Here

Examples of javax.swing.JFileChooser.showDialog()

        StringUtil.format(Strings.get("fileLibraryMissingError"),
          file.getName()));
      JFileChooser chooser = createChooser();
      chooser.setFileFilter(filter);
      chooser.setDialogTitle(StringUtil.format(Strings.get("fileLibraryMissingTitle"), file.getName()));
      int action = chooser.showDialog(parent, Strings.get("fileLibraryMissingButton"));
      if (action != JFileChooser.APPROVE_OPTION) {
        throw new LoaderException(Strings.get("fileLoadCanceledError"));
      }
      file = chooser.getSelectedFile();
    }
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.