First, the purpose of the experiment
1. Familiar with Java graphical user interface design principles and program structure
2. Able to design a graphical user interface program to review the problem requirements
3. Familiar with the combination of Java AWT and swing
4. Mastering the usual set-up of event excuses
5. Application design using AWT and swing components
Second, the experimental conditions
1.PC Machine One set
2.java Software Development Environment
Third, the experimental steps
1, write code, program see GitHub
Address: Https://github.com/daishimin/test/blob/master/jisuanji.java
2. Test results, see
Calculation: 5+20=25, the result is correct, the program is accurate.
Calculation: 10x10x10=1000, the result is correct, the program is accurate.
Iv. Summary of the experiment
By writing the calculator form I am familiar with the design principles and program structure of the Java graphical user interface familiar with the combination of Java AWT and swing. Learn to use the knowledge of books in practice, improve the ability of programming. In particular, the layout of the Javaapplet graphical interface has learned a lot, before the layout is messy and many layouts are invalid. In this course set up by looking at a lot of information and classmates help each other, give full play to the advantages of Javaapplet interface layout. In addition, the implementation of the button function is also a major difficulty in this lesson, how to achieve those functions is the key.
Java Calculator Lab Report