找回密码
 立即注册
AppletThe整数两个 | 企业管理 2022-09-22 106 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
来历版块:Java
压缩包内文件格式:可执行文件
附件来历:互联网
运行方式:Windows方式
是不是经自己验证:是
附件性质:共享
具体说明:使用Applet类和ActionListener接口,编写一个计算恣意两个整数之和的Applet小程序,源程序文件名为:SumA.java
请求:1)通过两个文本框恣意输入两个整数(文本框称号:txt1和txt2,宽度为6;),标签称号为:label。
2)单击“计算”按钮(按钮称号:btn),计算两个整数之和,成果显示在Applet窗口内,输出开始坐标为(200,250)。
3)布局管理器为GridLayout],1行3列。
4)编写可以运行此Applet小程序的A.html文件(Applet窗口的高度为200,宽度为300)。
1.doc

(Origin section: Java
The file format in the compressed package: executable file
Attachment source: Internet
Operation mode: Windows mode
Is it verified by yourself: yes
Attachment nature: shared
Specific instructions: Use the Applet class and the ActionListener interface to write an Applet applet that calculates the sum of any two integers. The source program file name is: SumA.java
Request: 1) Enter two integers arbitrarily through two text boxes (text box names: txt1 and txt2, width is 6;), and the label name is: label.
2) Click the "Calculate" button (button name: btn) to calculate the sum of two integers, the result is displayed in the Applet window, and the output start coordinate is (200,250).
3) The layout manager is GridLayout], 1 row and 3 columns.
4) Write the A.html file that can run this Applet applet (the height of the Applet window is 200 and the width is 300).
1.doc)

[下载]21393404754.rar




上一篇:JAVA的面向对象编程笔记
下一篇:java面试题