Examples of showDialog()


Examples of org.photovault.swingui.db.DbSettingsDlg.showDialog()

        JaiInitializer.initJAI();
        PhotovaultSettings settings = PhotovaultSettings.getSettings();
        Collection databases = settings.getDatabases();
        if ( databases.size() == 0 ) {
            DbSettingsDlg dlg = new DbSettingsDlg( null, true );
            if ( dlg.showDialog() != dlg.APPROVE_OPTION ) {
                System.exit( 0 );
            }
        }
    
  LoginDlg login = new LoginDlg( this );
View Full Code Here

Examples of org.photovault.swingui.export.ExportDlg.showDialog()

            exportFile = new File( "image.jpg" );
        }
        ExportDlg dlg = new ExportDlg( null, true );
        dlg.setFilename( exportFile.getAbsolutePath() );
       
        int retval = dlg.showDialog();
        if ( retval == ExportDlg.EXPORT_OPTION ) {
            Container c = view.getTopLevelAncestor();
            Cursor oldCursor = c.getCursor();
            c.setCursor( new Cursor( Cursor.WAIT_CURSOR ) );
            String exportFileTmpl = dlg.getFilename();
View Full Code Here

Examples of org.photovault.swingui.indexer.IndexerFileChooser.showDialog()

     separate thread.
     */
    protected void indexDir() {
  IndexerFileChooser fc = new IndexerFileChooser();
        fc.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY );
        int retval = fc.showDialog( this, "Select directory to index" );
        if ( retval == JFileChooser.APPROVE_OPTION ) {
            File dir = fc.getSelectedFile();
           
            // First check that this directory has not been indexed previously
            VolumeBase prevVolume = null;
View Full Code Here

Examples of org.springframework.richclient.dialog.ApplicationDialog.showDialog()

            dlg = new MessageDialog("Warning", "Please load a XML Schema file first.");
        }
        else {
            dlg = new RunMultipleDialog();
        }
        dlg.showDialog();
    }

}
View Full Code Here

Examples of org.springframework.richclient.dialog.ConfirmationDialog.showDialog()

                @Override
                protected void onConfirm() {
                    cloneSelectedItems();
                }
            };
            dlg.showDialog();
        } else {
            cloneSelectedItems();
        }
    }
View Full Code Here

Examples of org.springframework.richclient.dialog.InputApplicationDialog.showDialog()

            });
            //  TODO check default closeAction on InputApplicationDialog
            // setting closeAction explicitly to dispose, if InputApplicationDialog has this default,
            // this line may be removed.
            renameDialog.setCloseAction(CloseAction.DISPOSE);
            renameDialog.showDialog();
        }
    }

    private class RenamePetExecutor extends AbstractActionCommandExecutor {
        public void execute() {
View Full Code Here

Examples of org.springframework.richclient.dialog.TitledPageApplicationDialog.showDialog()

              catch(IllegalArgumentException e){
                return false;
              }
          }
      };
      dialog.showDialog();
   }
}
View Full Code Here

Examples of org.springframework.richclient.dialog.TitledWidgetApplicationDialog.showDialog()

        };
        TitledWidgetApplicationDialog dialog = new TitledWidgetApplicationDialog(widget);
        form.addValidationResultsReporter(new SimpleValidationResultsReporter(form.getFormModel().getValidationResults(), widget));
        dialog.setTitle("Form test");
        dialog.setModal(modal);
        dialog.showDialog();
        dialog.getParentWindow().addWindowListener(new WindowAdapter()
        {
            @Override
            public void windowClosed(WindowEvent e)
            {
View Full Code Here

Examples of org.springframework.richclient.selection.dialog.ListSelectionDialog.showDialog()

        selected[0] = selection;
      }
    };

    dialog.setRenderer( new LabelProviderListCellRenderer( labelProvider ) );
    dialog.showDialog();

    if ( selected[0] == null ) {
      throw new CanceledException();
    }
View Full Code Here

Examples of org.springframework.richclient.wizard.WizardDialog.showDialog()

    //noinspection InstanceofIncompatibleInterface
    if ( wizard instanceof ApplicationWindowAware ) {
      //noinspection CastToIncompatibleInterface
      ( ( ApplicationWindowAware ) wizard ).setApplicationWindow( getApplicationWindow() );
    }
    wizardDialog.showDialog();
  }

  /**
   * Creates the wizard that will be shown
   *
 
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.