Package net.sf.jiga.xtended.ui

Examples of net.sf.jiga.xtended.ui.JFCApplet


     }*/
    public static void main(final String args[]) {
        ThreadWorks.Swing.invokeLater(new Runnable() {

            public void run() {
                final JFCApplet applet = JFCApplet.launchAppletFrame(args);
                /*fApplication.addApplicationListener(new ApplicationAdapter(){

                 @Override
                 public void handleQuit(ApplicationEvent ae) {
                 applet.destroy();
                 ae.setHandled(true);
                 System.exit(0);
                 }

                 @Override
                 public void handleOpenFile(ApplicationEvent ae) {
                 boolean ret = applet.open(ae.getFilename());
                 ae.setHandled(ret);}
                   
                 }); */
                fApplication.setPreferencesHandler(null);
                fApplication.setQuitHandler(new QuitHandler() {

                    public void handleQuitRequestWith(AppEvent.QuitEvent qe, QuitResponse qr) {
                        applet.destroy();
                        qr.performQuit();
                    }
                });
                fApplication.setOpenFileHandler(new OpenFilesHandler() {

                    public void openFiles(AppEvent.OpenFilesEvent ofe) {
                        applet.open(ofe.getSearchTerm());
                    }
                });
                fApplication.setOpenURIHandler(new OpenURIHandler() {

                    public void openURI(AppEvent.OpenURIEvent ourie) {
                        applet.open(ourie.getURI());
                    }
                });
                fApplication.setQuitStrategy(QuitStrategy.SYSTEM_EXIT_0);
            }
        });
View Full Code Here

TOP

Related Classes of net.sf.jiga.xtended.ui.JFCApplet

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.