Assignments‎ > ‎

Assignment 6

Write a Java Application  that emulates a basic calculator.
It has 10 JButtons that can be clicked on to enter a value in a text box. (Numbers 0 through 9).
Two text boxes - One for input of numbers and one for Output.
Four JButtons for basic arithmetic operations (+, / , -, *)
One JButton (=) for printing final value.


Some help with Assignment 6
----------------------------
For Assignment 6 you will need to learn the following 
1. MVC Architecture 
2. Structure of JFrame 
3. What is a Listener, Response Methods and their relation. 
4. How to add and remove Listeners? 
5. How to use JButton - its properties, listener and response methods? 
6. How to use JTextField - its properties, listeners and response methods?