Examples of ExitListener


Examples of net.sf.pummel.view.action.ExitListener

    int height = (int) (displayMode.getHeight() * 0.80);
    int width = (int) (displayMode.getWidth() * 0.80);

    main.setSize(width, height);

    main.addWindowListener(new ExitListener(controller));

    initMenuBar();

    main.setJMenuBar(menubar);

View Full Code Here

Examples of net.sf.pummel.view.action.ExitListener

    menubar = new JMenuBar();

    JMenu fileMenu = new JMenu("File");

    JMenuItem exitItem = new JMenuItem("Exit");
    exitItem.addActionListener(new ExitListener(controller));

    fileMenu.add(exitItem);

    menubar.add(fileMenu);
View Full Code Here

Examples of org.jdesktop.application.Application.ExitListener

        initComponents();

//        activePanel.addPropertyChangeListener(new PropertyChangePassing(this));

        // Ask for confirmation on exit
        getApplication().addExitListener(new ExitListener() {
            public boolean canExit(EventObject arg0) {
                return releaseFile();
            }
            public void willExit(EventObject arg0) {
                if (preferences != null) saveState(preferences);
View Full Code Here

Examples of org.jdesktop.application.Application.ExitListener

        }
        jTextField2.setText(saveFolder);
        dObjects = new DownloadableObjects[4];

        //adding exitListener
        PlayDownloaderApp.getApplication().addExitListener(new ExitListener() {

            public boolean canExit(EventObject eo) {
                if(progressBar.isVisible()){
                    int out = JOptionPane.showConfirmDialog(mainPanel, "You have still unfinished downloads.\n\nAre you sure you want to quit?");
                    if(out == 1) return false;
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.