Package fr.valhalla.mailcheck.utils

Examples of fr.valhalla.mailcheck.utils.SoundPlayer


    }

    private void initSound() {
        soundCombo.addItem("Aucun");
        try {
            SoundPlayer sp = new SoundPlayer();
            Iterator i = sp.SOUNDS.keySet().iterator();
            while(i.hasNext()) {
                soundCombo.addItem(i.next());
            }
        } catch(Exception e) {e.printStackTrace();}
View Full Code Here


    private String getSound() {
        if(soundCombo.getSelectedIndex() == 0)
            return "NONE";

        try {
            SoundPlayer sp = new SoundPlayer();
            return sp.SOUNDS.get(soundCombo.getSelectedItem().toString());
        } catch(Exception e) {e.printStackTrace();}

        return "NONE";
    }
View Full Code Here

        // Aucun son : retour
        if(soundCombo.getSelectedIndex() == 0)
            return;

        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

                // update list
                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

Related Classes of fr.valhalla.mailcheck.utils.SoundPlayer

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.