private void jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem5ActionPerformed
        String contrastAmount = JOptionPane.showInputDialog(this, 
                "How much do you wish to increase contrast by?", "Contrast Adjust");
        try
        {
            int contrastAmountNum = Integer.parseInt(contrastAmount);
            if (contrastAmountNum>100||contrastAmountNum<-100)
            {
                JOptionPane.showMessageDialog(this, "That is not a valid number. Please enter a number between -100 and 100.", 
                        "Unable to change contrast", JOptionPane.ERROR_MESSAGE);
                return;
            }
            controller.doChangeContrast(contrastAmountNum);
        }
        catch (NumberFormatException e)
        {
            JOptionPane.showMessageDialog(this, "That is not a valid number.", 
                    "Unable to change contrast", JOptionPane.ERROR_MESSAGE);
        }
    }//GEN-LAST:event_jMenuItem5ActionPerformed