private void startTimer()
    {
        btnCancel.setEnabled(true);
        btnStart.setEnabled(false);
        model.setTime(getTimeFromSPinners());
        recentList.addItem(getTimeFromSPinners());
        recentList.saveItems();
        updateRecentMenu();
        timer.start();
        timeDirection = 0;
        if (TimerPreferences.getInstance().getBoolean("minimize", true))
        {
            setState(JFrame.ICONIFIED);
        }

    }