public boolean validateTimes()
    {
        errorMessage = "";
        if (classicTime)
        {
            if (!validateClassicTime(textStart.getText()))
            {
                errorMessage = String.format(
                    "Start time: %s is in wrong format. Insert value between: 00:00:00:000 - %s:59:59:999 format.",
                    textStart.getText(),
                    twoDigitString(MAX_HOURS - 1));

                textStart.setBackground(Color.RED);
                return false;
            }
            
            textStart.setBackground(Color.GREEN);
            
            if (!validateClassicTime(textEnd.getText()))
            {
                errorMessage = String.format(
                    "End time: %s is in wrong format. Insert value between: 00:00:00:000 - %s:59:59:999 format.",
                    textEnd.getText(),
                    twoDigitString(MAX_HOURS - 1));

                textEnd.setBackground(Color.RED);
                return false;
            }
        }
        else
        {
            if (!validateShortTime(textStart.getText()))
            {
                errorMessage = String.format(
                    "Start time: %s is in wrong format. Insert value between: (0h) (0m) (0s) (0ms) - (%sh) (59m) (59s) (999ms) format.",
                    textStart.getText(),
                    MAX_HOURS - 1);

                textStart.setBackground(Color.RED);
                return false;
            }
            
            textStart.setBackground(Color.GREEN);
            
            if (!validateShortTime(textEnd.getText()))
            {
                errorMessage = String.format(
                    "End time: %s is in wrong format. Insert value between: (0h) (0m) (0s) (0ms) - (%sh) (59m) (59s) (999ms) format.",
                    textEnd.getText(),
                    MAX_HOURS - 1);

                textEnd.setBackground(Color.RED);
                return false;
            }
        }

        textEnd.setBackground(Color.GREEN);

        setInfoFromGUI();
        return true;
    }