package untitled1;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import com.borland.jbcl.layout.*;
public class calculatorupdate extends Applet {
double startnum;
boolean isResult = false;
boolean flagAdd = false;
boolean flagSub = false;
boolean flagMul = false;
boolean flagDiv = false;
double endnum;
String str = null;
boolean isStandalone = false;
Button button1 = new Button();
XYLayout xYLayout1 = new XYLayout();
Button button2 = new Button();
Button button3 = new Button();
Button button4 = new Button();
Button button5 = new Button();
Button button6 = new Button();
Button button7 = new Button();
Button button8 = new Button();
Button button9 = new Button();
Button button10 = new Button();
Button button11 = new Button();
Button button12 = new Button();
Button button13 = new Button();
Button button14 = new Button();
Button button15 = new Button();
Button button16 = new Button();
Button button17 = new Button();
TextField text = new TextField();
Button button18 = new Button();
Button button19 = new Button();
Button button20 = new Button();
Button button21 = new Button();
Button button22 = new Button();
/**Get a parameter value*/
public String getParameter(String key, String def) {
return isStandalone ? System.getProperty(key, def) :
(getParameter(key) != null ? getParameter(key) : def);
}
/**Construct the applet*/
public calculatorupdate() {
}
/**Initialize the applet*/
public void init() {
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
/**Component initialization*/
private void jbInit() throws Exception {
button1.setFont(new java.awt.Font("Dialog", 0, 10));
button1.setLabel("1");
button1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button1_actionPerformed(e);
}
});
this.setLayout(xYLayout1);
button2.setFont(new java.awt.Font("Dialog", 0, 10));
button2.setLabel("2");
button2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button1_actionPerformed(e);
}
});
button3.setFont(new java.awt.Font("Dialog", 0, 10));
button3.setLabel("3");
button3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button1_actionPerformed(e);
}
});
button4.setFont(new java.awt.Font("Dialog", 0, 10));
button4.setLabel("4");
button4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button1_actionPerformed(e);
}
});
button5.setFont(new java.awt.Font("Dialog", 0, 10));
button5.setLabel("5");
button5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button1_actionPerformed(e);
}
});
button6.setFont(new java.awt.Font("Dialog", 0, 10));
button6.setLabel("6");
button6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button1_actionPerformed(e);
}
});
button7.setFont(new java.awt.Font("Dialog", 0, 10));
button7.setLabel("7");
button7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button1_actionPerformed(e);
}
});
button8.setFont(new java.awt.Font("Dialog", 0, 10));
button8.setLabel("8");
button8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button1_actionPerformed(e);
}
});
button9.setFont(new java.awt.Font("Dialog", 0, 10));
button9.setLabel("9");
button9.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button1_actionPerformed(e);
}
});
button10.setFont(new java.awt.Font("Dialog", 0, 10));
button10.setLabel("0");
button10.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button1_actionPerformed(e);
}
});
button11.setFont(new java.awt.Font("Dialog", 0, 10));
button11.setLabel(".");
button11.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button11_actionPerformed(e);
}
});
button12.setFont(new java.awt.Font("Dialog", 0, 10));
button12.setLabel("+");
button12.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button12_actionPerformed(e);
}
});
button13.setFont(new java.awt.Font("Dialog", 0, 10));
button13.setLabel("c");
button13.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button13_actionPerformed(e);
}
});
button14.setLabel("=");
button14.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button14_actionPerformed(e);
}
});
button15.setLabel("-");
button15.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button15_actionPerformed(e);
}
});
button16.setLabel("*");
button16.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button16_actionPerformed(e);
}
});
button17.setLabel("/");
button17.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button17_actionPerformed(e);
}
});
text.setEditable(false);
text.setText("0");
button18.setFont(new java.awt.Font("Dialog", 0, 8));
button18.setLabel("@");
button18.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button18_actionPerformed(e);
}
});
button19.setEnabled(false);
button19.setLabel("!");
button19.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button19_actionPerformed(e);
}
});
button20.setEnabled(false);
button20.setLabel("sin");
button20.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button20_actionPerformed(e);
}
});
button21.setEnabled(false);
button21.setLabel("cos");
button21.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button21_actionPerformed(e);
}
});
button22.setEnabled(false);
button22.setLabel("exp");
button22.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
button22_actionPerformed(e);
}
});
this.add(button1, new XYConstraints(60, 50, 40, 40));
this.add(button2, new XYConstraints(120, 50, 40, 40));
this.add(button3, new XYConstraints(180, 50, 40, 40));
this.add(button4, new XYConstraints(60, 100, 40, 40));
this.add(button5, new XYConstraints(120, 100, 40, 40));
this.add(button6, new XYConstraints(180, 100, 40, 40));
this.add(button7, new XYConstraints(60, 150, 40, 40));
this.add(button8, new XYConstraints(120, 150, 40, 40));
this.add(button9, new XYConstraints(180, 150, 40, 40));
this.add(button10, new XYConstraints(60, 200, 40, 40));
this.add(button11, new XYConstraints(120, 200, 40, 40));
this.add(button12, new XYConstraints(180, 200, 40, 40));
this.add(button13, new XYConstraints(10, 50, 40, 40));
this.add(button14, new XYConstraints(230, 50, 50, 40));
this.add(button15, new
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Jbuilder100例源代码.zip (1719个子文件)
gong.au 41KB
100.avi 5.98MB
效果图.bmp 535KB
效果图.bmp 527KB
效果图.bmp 444KB
效果图.bmp 444KB
效果图.bmp 444KB
效果图.bmp 444KB
效果图.bmp 444KB
效果图.bmp 398KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 387KB
效果图.bmp 377KB
效果图.bmp 352KB
效果图.bmp 352KB
效果图.bmp 339KB
效果图.bmp 311KB
效果图.bmp 308KB
效果图.bmp 303KB
效果图.bmp 284KB
效果图.bmp 267KB
效果图.bmp 264KB
效果图.bmp 263KB
效果图.bmp 257KB
效果图.bmp 253KB
效果图.bmp 238KB
效果图.bmp 238KB
效果图.bmp 236KB
效果图.bmp 235KB
效果图.bmp 231KB
效果图.bmp 214KB
效果图.bmp 204KB
效果图.bmp 186KB
效果图.bmp 183KB
效果图.bmp 179KB
效果图.bmp 172KB
效果图.bmp 168KB
效果图.bmp 165KB
效果图.bmp 165KB
效果图.bmp 162KB
效果图.bmp 155KB
效果图.bmp 154KB
效果图.bmp 145KB
效果图.bmp 144KB
效果图.bmp 139KB
效果图.bmp 137KB
效果图.bmp 133KB
效果图.bmp 129KB
效果图.bmp 128KB
效果图.bmp 117KB
效果图.bmp 116KB
效果图.bmp 113KB
效果图.bmp 106KB
效果图.bmp 106KB
效果图.bmp 94KB
效果图.bmp 89KB
效果图.bmp 89KB
效果图.bmp 79KB
效果图.bmp 74KB
共 1719 条
- 1
- 2
- 3
- 4
- 5
- 6
- 18
资源评论
- C-Founder2013-01-09内容较多,比较实用!
eboyunfei
- 粉丝: 6
- 资源: 42
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功