• 计算其


    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

    bobo = new javax.swing.JTextField();
    jButton1 = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();
    jButton3 = new javax.swing.JButton();
    jButton4 = new javax.swing.JButton();
    jButton5 = new javax.swing.JButton();
    jButton6 = new javax.swing.JButton();
    jButton7 = new javax.swing.JButton();
    jButton8 = new javax.swing.JButton();
    jButton9 = new javax.swing.JButton();
    jButton10 = new javax.swing.JButton();
    jButton11 = new javax.swing.JButton();
    jButton12 = new javax.swing.JButton();
    jButton13 = new javax.swing.JButton();
    jButton14 = new javax.swing.JButton();
    jButton15 = new javax.swing.JButton();
    jButton16 = new javax.swing.JButton();
    jButton17 = new javax.swing.JButton();
    jLabel1 = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    bobo.setFont(new java.awt.Font("微软雅黑", 1, 24)); // NOI18N

    jButton1.setFont(new java.awt.Font("微软雅黑", 1, 24)); // NOI18N
    jButton1.setText("+");
    jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton1MouseClicked(evt);
    }
    });
    jButton1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton1ActionPerformed(evt);
    }
    });

    jButton2.setFont(new java.awt.Font("微软雅黑", 1, 24)); // NOI18N
    jButton2.setText("7");
    jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton2MouseClicked(evt);
    }
    });
    jButton2.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton2ActionPerformed(evt);
    }
    });

    jButton3.setFont(new java.awt.Font("微软雅黑", 1, 24)); // NOI18N
    jButton3.setText("8");
    jButton3.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton3MouseClicked(evt);
    }
    });
    jButton3.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton3ActionPerformed(evt);
    }
    });

    jButton4.setFont(new java.awt.Font("微软雅黑", 1, 24)); // NOI18N
    jButton4.setText("9");
    jButton4.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton4MouseClicked(evt);
    }
    });
    jButton4.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton4ActionPerformed(evt);
    }
    });

    jButton5.setFont(new java.awt.Font("微软雅黑", 1, 24)); // NOI18N
    jButton5.setText("5");
    jButton5.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton5MouseClicked(evt);
    }
    });
    jButton5.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton5ActionPerformed(evt);
    }
    });

    jButton6.setFont(new java.awt.Font("微软雅黑", 1, 24)); // NOI18N
    jButton6.setText("6");
    jButton6.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton6MouseClicked(evt);
    }
    });
    jButton6.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton6ActionPerformed(evt);
    }
    });

    jButton7.setFont(new java.awt.Font("微软雅黑", 1, 24)); // NOI18N
    jButton7.setText("_");
    jButton7.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton7MouseClicked(evt);
    }
    });
    jButton7.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton7ActionPerformed(evt);
    }
    });

    jButton8.setFont(new java.awt.Font("微软雅黑", 1, 24)); // NOI18N
    jButton8.setText("1");
    jButton8.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton8MouseClicked(evt);
    }
    });
    jButton8.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton8ActionPerformed(evt);
    }
    });

    jButton9.setFont(new java.awt.Font("微软雅黑", 1, 24)); // NOI18N
    jButton9.setText("2");
    jButton9.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton9MouseClicked(evt);
    }
    });
    jButton9.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton9ActionPerformed(evt);
    }
    });

    jButton10.setFont(new java.awt.Font("微软雅黑", 1, 24)); // NOI18N
    jButton10.setText("4");
    jButton10.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton10MouseClicked(evt);
    }
    });
    jButton10.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton10ActionPerformed(evt);
    }
    });

    jButton11.setFont(new java.awt.Font("微软雅黑", 1, 24)); // NOI18N
    jButton11.setText("3");
    jButton11.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton11MouseClicked(evt);
    }
    });
    jButton11.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton11ActionPerformed(evt);
    }
    });

    jButton12.setFont(new java.awt.Font("微软雅黑", 1, 24)); // NOI18N
    jButton12.setText("*");
    jButton12.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton12MouseClicked(evt);
    }
    });
    jButton12.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton12ActionPerformed(evt);
    }
    });

    jButton13.setFont(new java.awt.Font("微软雅黑", 1, 24)); // NOI18N
    jButton13.setText("=");
    jButton13.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton13MouseClicked(evt);
    }
    });
    jButton13.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton13ActionPerformed(evt);
    }
    });

    jButton14.setFont(new java.awt.Font("微软雅黑", 1, 24)); // NOI18N
    jButton14.setText("C");
    jButton14.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton14MouseClicked(evt);
    }
    });
    jButton14.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton14ActionPerformed(evt);
    }
    });

    jButton15.setFont(new java.awt.Font("微软雅黑", 1, 24)); // NOI18N
    jButton15.setText("0");
    jButton15.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton15MouseClicked(evt);
    }
    });
    jButton15.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton15ActionPerformed(evt);
    }
    });

    jButton16.setFont(new java.awt.Font("微软雅黑", 1, 24)); // NOI18N
    jButton16.setText("/");
    jButton16.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton16MouseClicked(evt);
    }
    });
    jButton16.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton16ActionPerformed(evt);
    }
    });

    jButton17.setFont(new java.awt.Font("微软雅黑", 1, 24)); // NOI18N
    jButton17.setText(".");
    jButton17.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton17MouseClicked(evt);
    }
    });
    jButton17.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jButton17ActionPerformed(evt);
    }
    });

  • 相关阅读:
    ProjectEuler 13
    ProjectEuler 8
    ProjectEuler 5
    ProjectEuler 6
    ProjectEuler 7
    ProjectEuler 9
    日程管理系统维护改善1
    日程管理系统改错
    android作业Text
    四则运算
  • 原文地址:https://www.cnblogs.com/tanbo/p/15519312.html
Copyright © 2020-2023  润新知