private void raiseAlarm()
    {
        if (TimerPreferences.getInstance().getBoolean("mute", false))
        {
            System.out.println("Beeping");
            SwingUtilities.invokeLater(new Runnable()
            {

                @Override
                public void run()
                {
                    try
                    {
                        //TODO this has to be changed because of the proprietary warnings...
                        InputStream in = new FileInputStream("beep.wav");
                        AudioStream audioStream = new AudioStream(in);
                        AudioPlayer.player.start(audioStream);
                        //new AePlayWave("beep.wav").start();
                    } catch (FileNotFoundException ex)
                    {
                        Logger.getLogger(Gui.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (IOException ex)
                    {
                        Logger.getLogger(Gui.class.getName()).log(Level.SEVERE, null, ex);
                    }

                }
            });

        }
        //resetSpinners();
        setVisible(true);
        setState(JFrame.NORMAL);
        btnStart.setEnabled(true);

        if ((timeDirection == 0) && (TimerPreferences.getInstance().getBoolean("timechange", false)))
        {
            timeDirection = 1;
        } else
        {
            timer.stop();
            btnCancel.setEnabled(false);
        }
    }