Examples of ExitApplicationMessage


Examples of com.github.couchapptakeout.events.ExitApplicationMessage

        ok = true;
        this.dispose();
    }//GEN-LAST:event_okButtonActionPerformed

    private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed
        EventBus.publish(new ExitApplicationMessage());
    }//GEN-LAST:event_cancelButtonActionPerformed
View Full Code Here

Examples of com.github.couchapptakeout.events.ExitApplicationMessage

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed
        // TODO add your handling code here:
        EventBus.publish(new ExitApplicationMessage());
    }//GEN-LAST:event_cancelButtonActionPerformed
View Full Code Here

Examples of com.github.couchapptakeout.events.ExitApplicationMessage

    private static boolean errorAndAbort(Exception ie) {
        // show the user the error and abort
        //custom title, warning icon
        JOptionPane.showMessageDialog(null,"Sorry, something bad happened\n. Shutting down....buuuu\n. Message: " + ie.getMessage(), "Error", JOptionPane.WARNING_MESSAGE);

        EventBus.publish(new ExitApplicationMessage() );
        return false;
    }
View Full Code Here

Examples of com.github.couchapptakeout.events.ExitApplicationMessage

    protected MenuItem createExitMenuItem() {
        MenuItem item = new MenuItem("Exit");
        item.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                EventBus.publish(new ExitApplicationMessage() );
            }
        });
        return item;
    }
View Full Code Here

Examples of com.github.couchapptakeout.events.ExitApplicationMessage

            @Override
            public void windowClosing(WindowEvent e) {
                int value = JOptionPane.showConfirmDialog(browser, "Are you sure you want to exit?", appName, JOptionPane.YES_NO_OPTION);
                if (value == JOptionPane.YES_OPTION) {
                    browser.dispose();
                    EventBus.publish(new ExitApplicationMessage() );
                }
            }
        });

        browser.setVisible(true);
View Full Code Here

Examples of com.github.couchapptakeout.events.ExitApplicationMessage

        float gain = 0.0F;

        String ffmpeg = "/Applications/eckoit/lib/ffmpeg";


        EventBus.publish(new ExitApplicationMessage());

    }
View Full Code Here

Examples of com.github.couchapptakeout.events.ExitApplicationMessage

        // added to ensure no kids left behind
        Runtime.getRuntime().addShutdownHook(new Thread() {
           @Override
           public void run() {
             EventBus.publish(new ExitApplicationMessage());
           }
          });       


        new Thread(new Runnable() {
View Full Code Here

Examples of com.github.couchapptakeout.events.ExitApplicationMessage

        {
            MenuItem item = new MenuItem("Exit");
            item.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    EventBus.publish(new ExitApplicationMessage());
                    try {
                        Thread.sleep(1000);
                        System.exit(0);
                    } catch (Exception ex) {
                    }
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.