⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 calend.java~4~

📁 该系统是一个关于电子时钟的系统,他是用Java开发的一个小系统.
💻 JAVA~4~
字号:
package calendar;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import com.borland.jbcl.layout.XYConstraints;
import java.awt.Font;
import javax.swing.SwingConstants;
import java.awt.Color;
import com.borland.jbcl.layout.XYLayout;
import javax.swing.JTextField;
import javax.swing.JButton;
import com.borland.jbcl.layout.*;
import javax.swing.JTextArea;

public class Calend extends JPanel {
    BorderLayout borderLayout1 = new BorderLayout();
    JPanel jPanel1 = new JPanel();
    JTextField jTextField1 = new JTextField();
    JTextArea jTextArea1 = new JTextArea();
    XYLayout xYLayout1 = new XYLayout();
    JButton jButton1 = new JButton();
    JButton jButton2 = new JButton();
    JButton jButton3 = new JButton();
    JButton jButton4 = new JButton();
    JButton jButton5 = new JButton();
    JButton jButton6 = new JButton();
    JButton jButton7 = new JButton();
    JButton jButton8 = new JButton();
    JButton jButton9 = new JButton();
    JButton jButton10 = new JButton();
    JButton jButton11 = new JButton();
    JButton jButton12 = new JButton();
    JButton jButton13 = new JButton();
    JButton jButton14 = new JButton();
    JButton jButton15 = new JButton();
    JButton jButton16 = new JButton();
    JButton jButton17 = new JButton();
    JButton jButton18 = new JButton();
    JButton jButton19 = new JButton();
    JButton jButton20 = new JButton();
    JButton jButton21 = new JButton();
    JButton jButton22 = new JButton();
    JButton jButton23 = new JButton();
    JButton jButton24 = new JButton();
    JButton jButton25 = new JButton();
    JButton jButton26 = new JButton();
    JButton jButton27 = new JButton();
    public Calend() {
        try {
            jbInit();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }


    /*
         jPanel23.add(jButton16, new XYConstraints(55, 65, 40, 28));
             jPanel23.add(jButton21, new XYConstraints(55, 97, 40, 28));
             jPanel23.add(jButton26, new XYConstraints(55, 129, 40, 28));
             jPanel23.add(jButton11, new XYConstraints(55, 33, 40, 28));
             jPanel23.add(jButton12, new XYConstraints(100, 33, 40, 28));
             jPanel23.add(jButton17, new XYConstraints(100, 65, 40, 28));
             jPanel23.add(jButton22, new XYConstraints(100, 97, 40, 28));
             jPanel23.add(jButton27, new XYConstraints(100, 129, 40, 28));
             jPanel23.add(jButton13, new XYConstraints(145, 33, 40, 28));
             jPanel23.add(jButton18, new XYConstraints(145, 65, 40, 28));
             jPanel23.add(jButton23, new XYConstraints(145, 97, 40, 28));
             jPanel23.add(jButton28, new XYConstraints(145, 129, 40, 28));
             jPanel23.add(jButton29, new XYConstraints(190, 129, 40, 28));
             jPanel23.add(jButton24, new XYConstraints(190, 97, 40, 28));
             jPanel23.add(jButton19, new XYConstraints(190, 65, 40, 28));
             jPanel23.add(jButton14, new XYConstraints(190, 33, 40, 28));
             jPanel23.add(jButton15, new XYConstraints(235, 33, 40, 28));
             jPanel23.add(jButton20, new XYConstraints(235, 65, 40, 28));
             jPanel23.add(jButton25, new XYConstraints(235, 97, 40, 28));
             jPanel23.add(jButton30, new XYConstraints(235, 129, 40, 28));
             jPanel23.add(jButton4, new XYConstraints(55, 1, 70, 28));
             jPanel23.add(jButton5, new XYConstraints(130, 1, 70, 28));
             jPanel23.add(jButton6, new XYConstraints(204, 1, 70, 28));
     */
    private void jbInit() throws Exception {
        this.setLayout(borderLayout1);
        jTextField1.setText("jTextField1");
        jPanel1.setLayout(xYLayout1);
        jButton1.setText("Back");
        jButton2.setText("CE");
        jButton3.setText("C");
        jButton4.setText("MC");
        jButton5.setText("MR");
        jButton6.setText("MS");
        jButton7.setText("M+");
        jButton8.setText("7");
        jButton9.setText("4");
        jButton10.setText("1");
        jButton11.setText("0");
        jButton12.setText("8");
        jButton13.setText("5");
        jButton14.setText("2");
        jButton15.setText("+/-");
        jTextArea1.setText("ddf");
        jButton16.setText("9");
        jButton17.setText("6");
        jButton18.setText("3");
        jButton19.setText(".");
        jButton20.setText("/");
        jButton21.setText("*");
        jButton22.setText("-");
        jButton23.setText("+");
        jButton24.setText("s");
        jButton25.setText("%");
        jButton26.setText("1/x");
        jButton27.setText("=");
        jPanel1.add(jTextArea1, new XYConstraints(8, 8, -1, -1));
        jPanel1.add(jButton1, new XYConstraints(107, 9, -1, -1));
        jPanel1.add(jButton2, new XYConstraints(204, 20, -1, -1));
        jPanel1.add(jButton3, new XYConstraints(287, 15, -1, -1));
        jPanel1.add(jButton4, new XYConstraints(2, 33, 44, 28));
        jPanel1.add(jButton10, new XYConstraints(61, 133, 44, 28));
        jPanel1.add(jButton12, new XYConstraints(115, 53, 44, 28));
        jPanel1.add(jButton13, new XYConstraints(117, 104, 44, 28));
        jPanel1.add(jButton14, new XYConstraints(106, 140, 44, 28));
        jPanel1.add(jButton15, new XYConstraints(123, 181, 44, 28));
        jPanel1.add(jButton11, new XYConstraints(66, 176, 44, 28));
        jPanel1.add(jButton16, new XYConstraints(175, 54, 44, 28));
        jPanel1.add(jButton17, new XYConstraints(175, 104, 44, 28));
        jPanel1.add(jButton18, new XYConstraints(172, 141, 44, 28));
        this.add(jTextField1, java.awt.BorderLayout.NORTH);
        this.add(jPanel1, java.awt.BorderLayout.CENTER);
        jPanel1.add(jButton20, new XYConstraints(246, 60, 44, 28));
        jPanel1.add(jButton21, new XYConstraints(240, 105, 44, 28));
        jPanel1.add(jButton23, new XYConstraints(238, 189, 44, 28));
        jPanel1.add(jButton22, new XYConstraints(235, 151, 44, 28));
        jPanel1.add(jButton27, new XYConstraints(299, 208, 44, 28));
        jPanel1.add(jButton19, new XYConstraints(177, 181, 44, 28));
        jPanel1.add(jButton26, new XYConstraints(290, 154, 44, 28));
        jPanel1.add(jButton25, new XYConstraints(296, 122, 44, 28));
        jPanel1.add(jButton24, new XYConstraints(300, 69, 44, 28));
        jPanel1.add(jButton5, new XYConstraints(2, 65, 44, 28));
        jPanel1.add(jButton6, new XYConstraints(2, 97, 44, 28));
        jPanel1.add(jButton7, new XYConstraints(2, 129, 44, 28));
        jPanel1.add(jButton8, new XYConstraints(55, 33, 44, 28));
        jPanel1.add(jButton9, new XYConstraints(55, 65, 44, 28));
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -