Help making calculator with TextArea
I'm trying to make a calculator with TextArea ,, it should look like this:
and with this specifications:
1-Every different operation should be in a different line of the text area as shown in the snapshot.
2- If the input is of invalid type, for instance, letters or special characters, the appropriate exception should be thrown.
3- You should implement an exception class DivisionByZeroException and you throw it and catch when required.
4- At any exception thrown, an alert window should appear and details the error.
• The button C clears the last digit or symbol entered.
• The button CE clears the last line.
• the button Clear clears all the TextArea.
I made the design but the buttons are very big !! and the text area is very small !!
could anyone help me with the whole coding and I'd be very thankful ??