Description: Making use of Java calculator examples for learning Java source code download . Use of technology Java2 graphical interface and message response technology . Graphical interface technology , making the user interface of the calculator . By message response technology, features in response to user actions , and ultimately human-computer interaction . JAVA knowledge points used are: window layout is GridLayout applications for the button to listen and respond to the message .
Procedures and Notes
First class definition Calculator with calculating functions . Defined handler arithmetic operations in the class Calculator , named as opAdd (), opSubtract (), opMultiply (), opDivide (). Then realize the effect of human-computer interaction , the user interface must first define the implementation class CalculatorGUI. ( ) Function layout of the user interface by the Panel class setLayout. In addition, to be implemented on the button event listener through actionPerformed (ActionEvent event
To Search:
File list (Check if you may need any files):
Java计算器\Calculator.class
..........\Calculator.java
..........\CalculatorGUI.class
..........\CalculatorGUI.java
..........\_desktop.ini
..........\计算器.doc
Java计算器