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

📄 calend.java~3~

📁 该系统是一个关于电子时钟的系统,他是用Java开发的一个小系统.
💻 JAVA~3~
字号:
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 {
    XYLayout xYLayout1 = new XYLayout();
    JTextField jTextField1 = new JTextField();
    JButton jButton1 = new JButton();
    JButton jButton2 = new JButton();
    JButton jButton3 = new JButton();
    JButton jButton4 = new JButton();
    JButton jButton5 = new JButton();
    JTextArea jTextArea1 = new JTextArea();
    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();
    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));
             jPanel23.add(jButton7, new XYConstraints(2, 33, 44, 28));
             jPanel23.add(jButton8, new XYConstraints(2, 65, 44, 28));
             jPanel23.add(jButton9, new XYConstraints(2, 97, 44, 28));
             jPanel23.add(jButton10, new XYConstraints(2, 129, 44, 28));


     */
    private void jbInit() throws Exception {
        this.setLayout(xYLayout1);
        jTextField1.setText("jTextField1");
        jButton1.setText("Back");
        jButton2.setText("CE");
        jButton3.setText("C");
        jButton4.setText("MC");
        jButton5.setText("MR");
        jTextArea1.setText("jTextArea1");
        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.setToolTipText("");
        jButton15.setText("+/-");
        jButton16.setText("9");
        jButton17.setText("6");
        jButton18.setText("3");
        jButton19.setText(".");
        jButton20.setText("/");
        jButton21.setText("*");
        jButton22.setText("-");
        jButton23.setText("+");
        this.add(jTextField1, new XYConstraints(0, 0, 394, -1));
        this.add(jButton3, new XYConstraints(282, 29, -1, -1));
        this.add(jButton4, new XYConstraints(9, 68, 44, 28));
        this.add(jTextArea1, new XYConstraints(10, 33, 42, 25));
        this.add(jButton5, new XYConstraints(6, 113, -1, -1));
        this.add(jButton6, new XYConstraints(9, 151, -1, -1));
        this.add(jButton7, new XYConstraints(11, 194, -1, -1));
        this.add(jButton8, new XYConstraints(91, 72, -1, -1));
        this.add(jButton9, new XYConstraints(82, 111, -1, -1));
        this.add(jButton10, new XYConstraints(91, 155, -1, -1));
        this.add(jButton11, new XYConstraints(78, 187, -1, -1));
        this.add(jButton1, new XYConstraints(104, 40, -1, -1));
        this.add(jButton2, new XYConstraints(189, 40, -1, -1));
        this.add(jButton12, new XYConstraints(147, 73, -1, -1));
        this.add(jButton13, new XYConstraints(142, 107, -1, -1));
        this.add(jButton14, new XYConstraints(153, 158, -1, -1));
        this.add(jButton15, new XYConstraints(155, 192, -1, -1));
        this.add(jButton17, new XYConstraints(212, 111, -1, -1));
        this.add(jButton18, new XYConstraints(219, 160, -1, -1));
        this.add(jButton19, new XYConstraints(226, 197, -1, -1));
        this.add(jButton21, new XYConstraints(274, 109, -1, -1));
        this.add(jButton16, new XYConstraints(216, 65, -1, -1));
        this.add(jButton20, new XYConstraints(271, 80, -1, -1));
        this.add(jButton22, new XYConstraints(276, 155, -1, -1));
        this.add(jButton23, new XYConstraints(284, 203, -1, -1));
    }
}

⌨️ 快捷键说明

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