private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem4ActionPerformed
        String brightnessAmount = JOptionPane.showInputDialog(this, 
                "How much do you wish to increase brightness by?", "Brightness Adjust");
        try
        {
            int brightnessAmountNum = Integer.parseInt(brightnessAmount);
            if (brightnessAmountNum>255||brightnessAmountNum<-255)
            {
                JOptionPane.showMessageDialog(this, "That is not a valid number. Please enter a number between -255 and 255.", 
                        "Unable to change brightness", JOptionPane.ERROR_MESSAGE);
                return;
            }
            controller.doChangeBrightness(brightnessAmountNum);
        }
        catch (NumberFormatException e)
        {
            JOptionPane.showMessageDialog(this, "That is not a valid number.", 
                    "Unable to change brightness", JOptionPane.ERROR_MESSAGE);
        }
    }//GEN-LAST:event_jMenuItem4ActionPerformed