Profile
No self-introduction
Calculator in Java
no vote
Here is the source for the simple calculator shown at the left. It's divided into two source files.
Main and GUI - This is implemented as a subclass of JFrame, containing a small main program. It both builds the interface the user sees (the "view), and handles the events coming from the buttons (the "controller").
Model - This is where the actual calculations take place. Altho this simple example doesn't show the full power of separating the business logic (often called the "model") from the user interface, there are many advantages in larger programs.
trupti832773 2016-08-23
No more~
Follows 0
Fans 0
- Email: support@codeforge.com
© 2011-2024CodeForge Dev Team All rights reserved