亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? frame1.java

?? 學java課時
?? JAVA
字號:
package calculator1;import java.awt.*;import java.awt.event.*;import javax.swing.*;import com.borland.jbcl.layout.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2008</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class Frame1 extends JFrame {  JPanel contentPane;  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();  TextField textField1 = new TextField();  //Construct the frame  public Frame1() {    enableEvents(AWTEvent.WINDOW_EVENT_MASK);    try {      jbInit();    }    catch(Exception e) {      e.printStackTrace();    }  }  //Component initialization  private void jbInit() throws Exception  {    contentPane = (JPanel) this.getContentPane();    button1.setFont(new java.awt.Font("Dialog", 1, 15));    button1.setLabel("1");    button1.addActionListener(new Frame1_button1_actionAdapter(this));    contentPane.setLayout(xYLayout1);    this.setSize(new Dimension(247, 399));    this.setTitle("Frame Title");    button2.setFont(new java.awt.Font("Dialog", 1, 15));    button2.setLabel("2");    button2.addActionListener(new Frame1_button2_actionAdapter(this));    button3.setFont(new java.awt.Font("Dialog", 1, 15));    button3.setLabel("3");    button3.addActionListener(new Frame1_button3_actionAdapter(this));    button4.setFont(new java.awt.Font("Dialog", 1, 15));    button4.setLabel("4");    button4.addActionListener(new Frame1_button4_actionAdapter(this));    button5.setFont(new java.awt.Font("Dialog", 1, 15));    button5.setLabel("5");    button5.addActionListener(new Frame1_button5_actionAdapter(this));    button6.setFont(new java.awt.Font("Dialog", 1, 15));    button6.setLabel("6");    button6.addActionListener(new Frame1_button6_actionAdapter(this));    button7.setFont(new java.awt.Font("Dialog", 1, 15));    button7.setLabel("7");    button7.addActionListener(new Frame1_button7_actionAdapter(this));    button8.setFont(new java.awt.Font("Dialog", 1, 15));    button8.setLabel("8");    button8.addActionListener(new Frame1_button8_actionAdapter(this));    button9.setFont(new java.awt.Font("Dialog", 1, 15));    button9.setLabel("9");    button9.addActionListener(new Frame1_button9_actionAdapter(this));    textField1.setFont(new java.awt.Font("Dialog", 1, 20));    textField1.setText("");    button10.setFont(new java.awt.Font("Dialog", 1, 15));    button10.setLabel("0");    button10.addActionListener(new Frame1_button10_actionAdapter(this));    button11.setFont(new java.awt.Font("Dialog", 1, 15));    button11.setLabel(".");    button11.addActionListener(new Frame1_button11_actionAdapter(this));    button12.setBackground(Color.green);    button12.setFont(new java.awt.Font("Dialog", 1, 15));    button12.setLabel("+");    button12.addActionListener(new Frame1_button12_actionAdapter(this));    button13.setBackground(Color.green);    button13.setFont(new java.awt.Font("Dialog", 1, 15));    button13.setForeground(Color.black);    button13.setLabel("=");    button13.addActionListener(new Frame1_button13_actionAdapter(this));    button14.setBackground(Color.green);    button14.setFont(new java.awt.Font("Dialog", 1, 15));    button14.setLabel("-");    button14.addActionListener(new Frame1_button14_actionAdapter(this));    button15.setBackground(Color.green);    button15.setFont(new java.awt.Font("Dialog", 1, 15));    button15.setLabel("×");    button15.addActionListener(new Frame1_button15_actionAdapter(this));    button16.setBackground(Color.green);    button16.setFont(new java.awt.Font("Dialog", 1, 15));    button16.setLabel("/");    button16.addActionListener(new Frame1_button16_actionAdapter(this));    button17.setBackground(Color.pink);    button17.setFont(new java.awt.Font("Dialog", 1, 13));    button17.setLabel("C");    button17.addActionListener(new Frame1_button17_actionAdapter(this));    contentPane.setBackground(SystemColor.textInactiveText);    contentPane.add(button1,  new XYConstraints(9, 257, 45, 45));    contentPane.add(button2,      new XYConstraints(66, 257, 45, 45));    contentPane.add(button3,      new XYConstraints(125, 257, 45, 45));    contentPane.add(button4,    new XYConstraints(9, 201, 45, 45));    contentPane.add(button5,      new XYConstraints(66, 201, 45, 45));    contentPane.add(button6,     new XYConstraints(125, 201, 45, 45));    contentPane.add(button9,      new XYConstraints(125, 144, 45, 45));    contentPane.add(button8,    new XYConstraints(66, 144, 45, 45));    contentPane.add(button7,  new XYConstraints(9, 144, 45, 45));    contentPane.add(button11,       new XYConstraints(125, 314, 45, 45));    contentPane.add(button12,      new XYConstraints(183, 143, 45, 102));    contentPane.add(button13,       new XYConstraints(183, 257, 45, 101));    contentPane.add(textField1, new XYConstraints(9, 29, 214, 37));    contentPane.add(button17,   new XYConstraints(9, 84, 45, 45));    contentPane.add(button14, new XYConstraints(183, 84, 45, 45));    contentPane.add(button15, new XYConstraints(125, 84, 45, 45));    contentPane.add(button16, new XYConstraints(66, 84, 45, 45));    contentPane.add(button10, new XYConstraints(9, 314, 98, 45));  }  //Overridden so we can exit when window is closed  protected void processWindowEvent(WindowEvent e) {    super.processWindowEvent(e);    if (e.getID() == WindowEvent.WINDOW_CLOSING) {      System.exit(0);    }  }  //////////////////////////////////////////////////////////  double m=0,n=0,z=0;  int fuhao=0;  String w="";  String test;  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();  void button1_actionPerformed(ActionEvent e) {    test="1";    www();    this.textField1.setText(w);  }  void www()  {    w=w.concat(test);    return;  }  void button2_actionPerformed(ActionEvent e) {    test="2";    www();    this.textField1.setText(w);  }  void button3_actionPerformed(ActionEvent e) {    test="3";    www();    this.textField1.setText(w);  }  void button4_actionPerformed(ActionEvent e) {    test="4";    www();    this.textField1.setText(w);  }  void button5_actionPerformed(ActionEvent e) {    test="5";    www();    this.textField1.setText(w);  }  void button6_actionPerformed(ActionEvent e) {    test="6";    www();    this.textField1.setText(w);  }  void button7_actionPerformed(ActionEvent e) {    test="7";    www();    this.textField1.setText(w);  }  void button8_actionPerformed(ActionEvent e) {    test="8";    www();    this.textField1.setText(w);  }  void button9_actionPerformed(ActionEvent e) {    test="9";    www();    this.textField1.setText(w);  }  void button10_actionPerformed(ActionEvent e) {    test="0";    www();    this.textField1.setText(w);  }  void button11_actionPerformed(ActionEvent e) {    test=".";    www();    this.textField1.setText(w);  }  void button13_actionPerformed(ActionEvent e) {    if(w!=""){      n=Double.parseDouble(w);      switch (fuhao) {        case 1:          z = m + n;          break;        case 2:          z = m - n;          break;        case 3:          z = m * n;          break;        case 4:          z = m / n;          break;        case 0:          this.textField1.setText("ERROR");          break;      }      m = z;      w = Double.toString(z);      this.textField1.setText(w);      w = "";    }    else this.textField1.setText("ERROR");  }  void button12_actionPerformed(ActionEvent e) {    if(m==0)    {      if (w == "") w="0";        m = Double.parseDouble(w);    }    fuhao=1;    this.textField1.setText("");    w="";  }  void button14_actionPerformed(ActionEvent e) {    if(m==0)    {      if (w == "") w="0";        m = Double.parseDouble(w);    }    fuhao=2;    this.textField1.setText("");    w="";  }  void button15_actionPerformed(ActionEvent e) {    if(m==0)    {      if (w == "") w="0";        m = Double.parseDouble(w);    }    fuhao=3;    this.textField1.setText("");    w="";  }  void button16_actionPerformed(ActionEvent e) {    if(m==0)    {      if (w == "") w="0";        m = Double.parseDouble(w);    }    fuhao=4;    this.textField1.setText("");    w="";  }  void button17_actionPerformed(ActionEvent e) {    m=0;n=0;z=0;    fuhao=0;    w="";    test="";    this.textField1.setText("");  }}class Frame1_button1_actionAdapter implements java.awt.event.ActionListener {  Frame1 adaptee;  Frame1_button1_actionAdapter(Frame1 adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.button1_actionPerformed(e);  }}class Frame1_button2_actionAdapter implements java.awt.event.ActionListener {  Frame1 adaptee;  Frame1_button2_actionAdapter(Frame1 adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.button2_actionPerformed(e);  }}class Frame1_button3_actionAdapter implements java.awt.event.ActionListener {  Frame1 adaptee;  Frame1_button3_actionAdapter(Frame1 adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.button3_actionPerformed(e);  }}class Frame1_button4_actionAdapter implements java.awt.event.ActionListener {  Frame1 adaptee;  Frame1_button4_actionAdapter(Frame1 adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.button4_actionPerformed(e);  }}class Frame1_button5_actionAdapter implements java.awt.event.ActionListener {  Frame1 adaptee;  Frame1_button5_actionAdapter(Frame1 adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.button5_actionPerformed(e);  }}class Frame1_button6_actionAdapter implements java.awt.event.ActionListener {  Frame1 adaptee;  Frame1_button6_actionAdapter(Frame1 adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.button6_actionPerformed(e);  }}class Frame1_button7_actionAdapter implements java.awt.event.ActionListener {  Frame1 adaptee;  Frame1_button7_actionAdapter(Frame1 adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.button7_actionPerformed(e);  }}class Frame1_button8_actionAdapter implements java.awt.event.ActionListener {  Frame1 adaptee;  Frame1_button8_actionAdapter(Frame1 adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.button8_actionPerformed(e);  }}class Frame1_button9_actionAdapter implements java.awt.event.ActionListener {  Frame1 adaptee;  Frame1_button9_actionAdapter(Frame1 adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.button9_actionPerformed(e);  }}class Frame1_button10_actionAdapter implements java.awt.event.ActionListener {  Frame1 adaptee;  Frame1_button10_actionAdapter(Frame1 adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.button10_actionPerformed(e);  }}class Frame1_button11_actionAdapter implements java.awt.event.ActionListener {  Frame1 adaptee;  Frame1_button11_actionAdapter(Frame1 adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.button11_actionPerformed(e);  }}class Frame1_button13_actionAdapter implements java.awt.event.ActionListener {  Frame1 adaptee;  Frame1_button13_actionAdapter(Frame1 adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.button13_actionPerformed(e);  }}class Frame1_button12_actionAdapter implements java.awt.event.ActionListener {  Frame1 adaptee;  Frame1_button12_actionAdapter(Frame1 adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.button12_actionPerformed(e);  }}class Frame1_button14_actionAdapter implements java.awt.event.ActionListener {  Frame1 adaptee;  Frame1_button14_actionAdapter(Frame1 adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.button14_actionPerformed(e);  }}class Frame1_button15_actionAdapter implements java.awt.event.ActionListener {  Frame1 adaptee;  Frame1_button15_actionAdapter(Frame1 adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.button15_actionPerformed(e);  }}class Frame1_button16_actionAdapter implements java.awt.event.ActionListener {  Frame1 adaptee;  Frame1_button16_actionAdapter(Frame1 adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.button16_actionPerformed(e);  }}class Frame1_button17_actionAdapter implements java.awt.event.ActionListener {  Frame1 adaptee;  Frame1_button17_actionAdapter(Frame1 adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.button17_actionPerformed(e);  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美区在线观看| 精品国产91久久久久久久妲己| 欧美日韩国产另类一区| 久久影院电视剧免费观看| 亚洲精品大片www| 国产一区二区三区高清播放| 欧美女孩性生活视频| 欧美日本精品一区二区三区| 亚洲色图在线看| 久久精品国产99| 欧日韩精品视频| 国产精品夫妻自拍| 国产一区二区三区久久久| 欧美久久久久久久久久| 亚洲卡通欧美制服中文| 成人高清视频免费观看| 久久久亚洲欧洲日产国码αv| 视频一区在线视频| 欧美体内she精视频| 亚洲精选视频免费看| 国产成人自拍网| 久久夜色精品一区| 国内精品免费在线观看| 欧美一区二区日韩| 免费在线欧美视频| 日韩欧美中文字幕公布| 日韩高清电影一区| 欧美一区二视频| 青青草国产成人av片免费| 欧美无砖专区一中文字| 午夜激情综合网| 51精品久久久久久久蜜臀| 亚洲成av人影院在线观看网| 欧美片网站yy| 热久久免费视频| 精品国产三级a在线观看| 蜜臀精品一区二区三区在线观看| 日韩一二三区视频| 国模一区二区三区白浆 | 日韩电影一区二区三区四区| 精品视频资源站| 污片在线观看一区二区| 91精品久久久久久久99蜜桃| 青青草成人在线观看| 久久九九国产精品| heyzo一本久久综合| 亚洲精品国产品国语在线app| 欧美羞羞免费网站| 日韩不卡免费视频| 国产欧美一区二区精品性色| eeuss影院一区二区三区| 一区二区在线观看不卡| 欧美久久一二三四区| 国产最新精品免费| 亚洲视频一区二区在线观看| 精品视频一区二区不卡| 久久精品72免费观看| 欧美国产日韩一二三区| 在线看不卡av| 久久99精品久久久久久国产越南 | 国产成a人亚洲| 亚洲人成网站影音先锋播放| 欧美三级日本三级少妇99| 久久精品国产亚洲a| 中文幕一区二区三区久久蜜桃| 91浏览器在线视频| 另类成人小视频在线| 国产精品蜜臀在线观看| 欧美日韩一级二级| 国产大陆亚洲精品国产| 亚洲综合色视频| 国产日韩欧美一区二区三区乱码 | 久久97超碰国产精品超碰| 中文字幕在线不卡视频| 5月丁香婷婷综合| 99视频精品全部免费在线| 精品在线观看免费| 亚洲精品va在线观看| 久久一留热品黄| 欧美乱熟臀69xxxxxx| av一本久道久久综合久久鬼色| 三级一区在线视频先锋| 国产精品美女一区二区在线观看| 91精品综合久久久久久| 99精品久久只有精品| 国产一区91精品张津瑜| 亚洲成人中文在线| 国产精品美女久久久久久久久| 日韩午夜在线观看| 色婷婷av一区二区三区大白胸| 国产福利91精品一区二区三区| 日韩在线观看一区二区| 亚洲一本大道在线| 亚洲男人电影天堂| 中文字幕精品一区二区精品绿巨人 | 久久亚洲捆绑美女| 欧美日韩国产精品成人| 91福利在线导航| 99国产一区二区三精品乱码| 粉嫩av亚洲一区二区图片| 毛片av中文字幕一区二区| 亚瑟在线精品视频| 亚洲一区二区欧美| 一区二区三区精品视频| 亚洲乱码国产乱码精品精98午夜| 国产精品久久久久一区| 中文字幕免费在线观看视频一区| 久久久青草青青国产亚洲免观| 欧美一级xxx| 日韩三级.com| 欧美不卡在线视频| 久久综合久色欧美综合狠狠| 精品裸体舞一区二区三区| 欧美一区2区视频在线观看| 51精品秘密在线观看| 91精品国产综合久久香蕉的特点 | 国产成人无遮挡在线视频| 国产一区二区三区免费播放| 国产综合色视频| 国产高清久久久| 成人免费福利片| 91一区一区三区| 欧美视频一区在线| 欧美一级高清片| 精品国产91亚洲一区二区三区婷婷| 久久影院电视剧免费观看| 欧美国产一区二区| 一区精品在线播放| 亚洲影院理伦片| 日韩 欧美一区二区三区| 美腿丝袜在线亚洲一区| 国产一区二区h| 91亚洲资源网| 制服丝袜日韩国产| 精品国产伦理网| 日韩毛片精品高清免费| 一区二区三区电影在线播| 一二三四社区欧美黄| 日本vs亚洲vs韩国一区三区二区| 美日韩一区二区三区| 国产成人超碰人人澡人人澡| 99久久久精品| 91精品在线一区二区| 中文字幕电影一区| 亚瑟在线精品视频| 国产在线精品不卡| 色视频一区二区| 欧美一级片在线观看| 国产精品美女视频| 日本欧美韩国一区三区| 成人av影院在线| 91精品国模一区二区三区| 国产欧美日韩三级| 日韩精品91亚洲二区在线观看 | 欧美日韩免费一区二区三区视频| 日韩一区二区视频在线观看| 欧美国产亚洲另类动漫| 香蕉成人啪国产精品视频综合网| 国产精品一区二区你懂的| 欧洲一区在线观看| 国产色婷婷亚洲99精品小说| 亚洲成av人影院在线观看网| 成人国产亚洲欧美成人综合网| 91精品国产全国免费观看| 中文字幕不卡在线观看| 美国十次综合导航| 日本久久电影网| 亚洲国产精品传媒在线观看| 免费亚洲电影在线| 在线观看日韩av先锋影音电影院| 久久久一区二区三区捆绑**| 亚洲第一狼人社区| 不卡一区二区在线| 久久这里只有精品视频网| 亚洲成av人影院| 色婷婷av一区| 亚洲精品视频观看| 成人黄色av电影| 亚洲一区二区欧美日韩| 成人av网站免费观看| 精品少妇一区二区三区在线视频| 亚洲曰韩产成在线| 在线免费不卡视频| 成人免费小视频| 成人av在线电影| 久久久久久久精| 久久国产精品第一页| 欧美一区二区三区在| 日韩中文欧美在线| 欧美日韩国产美女| 午夜电影久久久| 欧美日韩一区二区不卡| 亚洲国产精品久久人人爱蜜臀 | 成人免费毛片片v| 久久精品人人做人人综合| 韩国女主播一区| 精品国产亚洲在线| 国产69精品久久99不卡| 久久综合资源网| 国产99精品视频|