make actionPerformed() method throw ArithmeticException as well