Question: Programming Practice The files AdditionButton.java( http://websites.delta.edu/teklingl/cs1/resources/w12/examples/AdditionButton.java.txt ) and AdditionException.java( http://websites.delta.edu/teklingl/cs1/resources/w12/examples/AdditionException.java.txt ) from the provided in-class examples. Enhance the AdditionButton class in the following ways: Integrate
Programming Practice
The files AdditionButton.java(http://websites.delta.edu/teklingl/cs1/resources/w12/examples/AdditionButton.java.txt) and AdditionException.java(http://websites.delta.edu/teklingl/cs1/resources/w12/examples/AdditionException.java.txt) from the provided in-class examples.
Enhance the AdditionButton class in the following ways:
Integrate exception-handling into the actionPerformed method. Verify that the users input does not trigger NumberFormatException. Provide an error message if it does and be sure no further processing takes place until they enter correct input.
Add a third text field to expand the application to offer the ability to add three numbers instead of the original two.
Add traditional error checking as well so that the addition is only performed if all three numbers entered are non-negative.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
