Package org.jdesktop.application

Examples of org.jdesktop.application.Application


        return trustedCerts;
    }

    private BatchEnrollmentGUIApp getApp() {
        final BatchEnrollmentGUIApp guiApp;
        final Application app = getApplication();
        if (app instanceof BatchEnrollmentGUIApp) {
            guiApp = (BatchEnrollmentGUIApp) app;
        } else {
            throw new RuntimeException("Wrong type of application");
        }
View Full Code Here


        Window owner = findDialog.getOwner();
        findDialog.pack();
        if (location == null) {
            // the first time creation in this app's life-cycle
            findDialog.setLocationRelativeTo(owner);
            Application application = Application.getInstance(Application.class);
            ApplicationContext appContext = application.getContext();
            try {
                if (application instanceof SingleXFrameApplication) {
                    ((SingleXFrameApplication) application).prepareDialog(findDialog, false);
                } else {
                    appContext.getSessionStorage().restore(findDialog, "findDialog.session.xml");
View Full Code Here

                createRenderingHandler());
        // </snip>
        DemoUtils.setSnippet("Custom CalendarRenderingHandler", monthView);
        calendar.add(monthView);
        calendarFrame.add(calendar);
        Application application = Application.getInstance(Application.class);
        if (application instanceof SingleFrameApplication) {
            ((SingleFrameApplication) application).show(calendarFrame);
        } else {
            calendarFrame.pack();
            calendarFrame.setLocationRelativeTo(this);
View Full Code Here

 
 
 
  @Override
  public void onClick() {
    Application app = BradsWebdavClientApp.getApplication();
    Task task = new DownloadFolderTask(app);
    BradsWebdavClientApp.getApplication().getContext().getTaskService().execute(task);
  }
View Full Code Here

        tableTransferHandler = new TableResourceTransferHandler( table, new TableDroppable() );
        //TableTransferHandler.initInstance(table, model);
    }

    private void doFilesDropped( final java.io.File[] files ) {
        Application app = BradsWebdavClientApp.getApplication();
        Task task = new UploadTask( this, BradsWebdavClientApp.getApplication(), files, model.folder );
        BradsWebdavClientApp.getApplication().getContext().getTaskService().execute( task );
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.application.Application

Copyright © 2018 www.massapicom. 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.