java write a swing component a dder that contains two j textfield instances one j b 5192210
[Java] Write a Swing component A dder that contains two J TextField instances, one J Button labelled “Add” and one J Label that initially contains empty spaces. When the user presses the button, the component should read the numbers from the two text fields, add them up and show the result in the label. If either text field contains a malformed number, that should just be considered a zero. Note that your component doesn’t need to listen to the action events of the text fields, but only those of its button.
you must use some kind of nested class to do the listening, and should not make the component class itself to be the listener. Please READ and UNDERSTAND it before you try to solve it! DO NOT POST SPAM ANSWER!