Examples of ProgressDialog


Examples of org.nasutekds.guitools.controlpanel.ui.ProgressDialog

  public void runTask()
  {
    state = State.RUNNING;
    starting = false;
    lastException = null;
    final ProgressDialog dlg = getProgressDialog();
    SwingUtilities.invokeLater(new Runnable()
    {
      public void run()
      {
        String cmdLine = getStopCommandLineName();
        printEquivalentCommandLine(cmdLine, getCommandLineArguments(),
            INFO_CTRL_PANEL_EQUIVALENT_CMD_TO_STOP_SERVER.get());
        dlg.setSummary(Message.raw(
            Utilities.applyFont(
            INFO_CTRL_PANEL_STOPPING_SERVER_SUMMARY.get().toString(),
            ColorAndFontConstants.defaultFont)));
      }
    });
    // To display new status
    getInfo().regenerateDescriptor();
    getInfo().stopPooling();
    try
    {
      ArrayList<String> arguments = getCommandLineArguments();

      String[] args = new String[arguments.size()];

      arguments.toArray(args);
      returnCode = executeCommandLine(getStopCommandLineName(), args);

      if (returnCode != 0)
      {
        state = State.FINISHED_WITH_ERROR;
      }
      else
      {
        SwingUtilities.invokeLater(new Runnable()
        {
          public void run()
          {
            getProgressDialog().getProgressBar().setIndeterminate(false);
            dlg.getProgressBar().setValue(30);
            dlg.appendProgressHtml(Utilities.applyFont(
                "<b>"+INFO_CTRL_PANEL_SERVER_STOPPED.get()+"</b><br><br>",
                ColorAndFontConstants.progressFont));
            String cmdLine = getStartCommandLineName();
            printEquivalentCommandLine(cmdLine, getStartCommandLineArguments(),
                INFO_CTRL_PANEL_EQUIVALENT_CMD_TO_START_SERVER.get());

            dlg.setSummary(Message.raw(
                Utilities.applyFont(
                INFO_CTRL_PANEL_STARTING_SERVER_SUMMARY.get().toString(),
                ColorAndFontConstants.defaultFont)));
          }
        });
View Full Code Here

Examples of org.osm2world.viewer.view.ProgressDialog

           
      while (runAgain) {
       
        runAgain = false;
       
        progressDialog = new ProgressDialog(viewerFrame, "Open OSM File");
               
        try {
         
          data.loadOSMFile(osmFile, failOnLargeBBox,
              new DefaultFactory<TerrainInterpolator>(
View Full Code Here

Examples of org.osm2world.viewer.view.ProgressDialog

      if (getFileNameExtensionFilter() != null) {
        progressDescription += " of type "
            + getFileNameExtensionFilter().getDescription();
      }
     
      progressDialog = new ProgressDialog(viewerFrame, progressDescription);
      progressDialog.setProgress(null);
      progressDialog.setText("Writing file: " + file.getAbsolutePath());
     
      performExport(file);
View Full Code Here

Examples of org.uengine.processdesigner.ProgressDialog

                      dialog.dispose();
                     
                      SwingUtilities.invokeLater(new Runnable(){

                        public void run() {
                          new ProgressDialog("Deploy", ProcessDesigner.getInstance()){

                            public void run() throws Exception {
                              FieldDescriptor[] fds = deployOrNot.getFieldDescriptors();

                              for(int i=0; i<deployOrNot.getFieldDescriptors().length; i++){
View Full Code Here

Examples of org.xnap.commons.gui.ProgressDialog

      throw new RuntimeException("Concurrent job invocation");
    }
   
    final Object[] retSuccess = new Object[1];
    final Throwable[] ret = new Exception[1];
    final ProgressDialog dialog;
   
    if (owner != null) { dialog = new ProgressDialog(owner); }
    else { dialog = new ProgressDialog(JHylaFAX.getInstance()); }

    Runnable runner = new Runnable() {
      public void run()
      {
        try {
          retSuccess[0] = job.run(new UserAbortProgressMonitor(dialog));
        }
        catch (Throwable e) {
          ret[0] = e;
        }
        SwingUtilities.invokeLater(new Runnable() {
          public void run() {
            dialog.done();
          }
        });
      }
    };

        // make sure no other jobs are started
        jobRunning = true;
       
    Thread t = new Thread(runner, "Job");
    t.start();
   
    // show blocking dialog
    if (owner != null) { dialog.setLocationRelativeTo(owner); }
    else { dialog.setLocationRelativeTo(JHylaFAX.getInstance()); }
    dialog.setTitle(i18n.tr("HylaFAX Server"));
    dialog.setModal(true);
    dialog.showDialog();
     
    // at this point t is guranteed to be finished
    jobRunning = false;
   
    // XXX what if the errordialog is displayed?
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.