posted 22 years ago
If someone could help me figure out how to get the clear button to work on my calculator, I would appreciate it.
Instructions: Write a program that displays a calculator. It has 1. an input field at the top to enter a number (20 characters wide). 2. display field that displays the current total (20 characters wide not editable text field). 3. 3 buttons "Add", "Subtract", "Clear". 4. Title of "Calculator". .
Calculator.java
This program works except for the clear button doesn't clear the field. Thanks for any help.
------------------
Thanks, Dianne
(Marilyn added code tags)
[This message has been edited by Marilyn deQueiroz (edited October 28, 2001).]