设计一个计算器的java图形界面

来源:百度知道 编辑:UC知道 时间:2024/06/27 14:06:16
windows附件所带的计算器的图形化界面 一样~
只要图形界面就好不需要功能
谢~!

/*
* calc.java
*
*/

/**
*
* @author GuoJiale
*/
public class calc extends javax.swing.JFrame {

/** Creates new form calc */
public calc() {
initComponents();
}

/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc=" 生成的代码 ">
private void initComponents() {
jTextField1 = 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.