Package fr.valhalla.mailcheck.utils

Examples of fr.valhalla.mailcheck.utils.SoundPlayer.play()


        try {
            SoundPlayer sp = new SoundPlayer();
            String selectedSound = soundCombo.getSelectedItem().toString();
            String soundFile = sp.SOUNDS.get(selectedSound);
            sp = new SoundPlayer(soundFile);
            sp.play();
        } catch(Exception e) {e.printStackTrace();}
       
    }//GEN-LAST:event_playSoundLabelMouseClicked

View Full Code Here


                updateList(difference, imap.countAllMessages());
                // Play new mail sound
                if(account.getSound() == null ? "NONE" != null : !account.getSound().equals("NONE"))
                    try {
                        SoundPlayer sound = new SoundPlayer(account.getSound());
                        sound.play();
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                // Show notification !
                if(account.hasNotifications() && kernel.withGUI()) {
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.