Click here to Skip to main content
15,850,360 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
Write a simple calculator applet that allows a user to perform addition or subtraction of two integer numbers. The applet should have two input fields and one output field. It should also have two buttons to start the calculation.

Create two panels. Add the first panel to the centre of the applet and the second panel to the south. Initialise the three text fields to have empty contents and lengths 10, 10 and 20, make the output field non-editable and add all three fields to the first panel.

Create buttons labelled “+” and “-”and add them to the second panel. Associate appropriate action handlers with the buttons.

What I have tried:

nothing, this is a homework question i require help with
Updated 19-May-16 9:45am
Dave Kreskowiak 19-May-16 8:39am    
OK, it sounds like you didn't even try to start this, so.....
phil.o 19-May-16 10:13am    
Please describe what you do need help with. As is, you are just asking us to do your homework for you, which is not acceptable.

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
Share this answer
nothing, this is a homework question i require help with
You should start to work !
Looks you just want to get credits for a work you haven't done. Pretty rude !
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900