For the exception:

Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "2+2"

The String, "2+2" is being used as an argument to the Double.parseDouble()...