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

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

?? calendarframe.java

?? 該系統(tǒng)是一個關于電子時鐘的系統(tǒng),他是用Java開發(fā)的一個小系統(tǒng).
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
package calendar;

import java.awt.event.*;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.BoxLayout;
import java.util.Calendar;
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.Color;
import java.awt.SystemColor;
import javax.swing.BorderFactory;
import javax.swing.border.Border;
import com.borland.jbcl.layout.BoxLayout2;
import java.awt.FlowLayout;
import java.text.SimpleDateFormat;
import java.text.ParseException;
import javax.swing.border.EtchedBorder;
import java.awt.GridLayout;
import javax.swing.JButton;
import com.borland.jbcl.layout.*;
import java.awt.Dimension;

public class CalendarFrame extends JFrame implements Runnable {
    //定義面板 主面板contentPane;
    JPanel contentPane;
    //定義主面板的布局管理器;
    BorderLayout borderLayout1 = new BorderLayout();
    //定義放置組件面板;
    JPanel jPanel2 = new JPanel();
    //定義邊框顏色;
    Border border1 = BorderFactory.createCompoundBorder(BorderFactory.
            createLineBorder(SystemColor.textHighlight, 2),
            BorderFactory.createEmptyBorder(2, 2, 2, 2));
    Border border2 = BorderFactory.createCompoundBorder(BorderFactory.
            createEtchedBorder(EtchedBorder.RAISED, Color.white,
                               new Color(165, 163, 151)),
            BorderFactory.createEmptyBorder(3, 3, 3, 3));
    //定義放置按鈕的面板
    JPanel jPanel8 = new JPanel();
    Border border3 = BorderFactory.createCompoundBorder(BorderFactory.
            createLineBorder(SystemColor.controlText, 2),
            BorderFactory.createEmptyBorder(3, 3, 3, 3));
    JPanel jPanel9 = new JPanel();
    //定義放置日期的面板
    JPanel jPanel10 = new JPanel();
    JPanel jPanel11 = new JPanel();
    //定義放置時間的面板
    JPanel jPanel12 = new JPanel();
    JPanel jPanel13 = new JPanel();
    JLabel jLabel4 = new JLabel();
    JLabel jLabel5 = new JLabel();
    JLabel jLabel6 = new JLabel();
    JButton jButton1 = new JButton();
    JButton jButton2 = new JButton();
    JButton jButton3 = new JButton();
    JLabel jLabel7 = new JLabel();
    JPanel jPanel14 = new JPanel();
    JLabel jLabel8 = new JLabel();
    JPanel jPanel15 = new JPanel();
    JLabel jLabel9 = new JLabel();
    JPanel jPanel16 = new JPanel();
    JPanel jPanel17 = new JPanel();
    JLabel jLabel10 = new JLabel();
    JPanel jPanel18 = new JPanel();
    JLabel jLabel11 = new JLabel();
    JPanel jPanel19 = new JPanel();
    JLabel jLabel12 = new JLabel();
    JLabel jLabel13 = new JLabel();
    JLabel jLabel14 = new JLabel();
    JLabel jLabel15 = new JLabel();
    JLabel jLabel16 = new JLabel();
    JLabel jLabel17 = new JLabel();
    JLabel jLabel18 = new JLabel();
    JLabel jLabel19 = new JLabel();
    GridLayout gridLayout2 = new GridLayout();
    JLabel jLabel20 = new JLabel();
    JLabel jLabel21 = new JLabel();
    JLabel jLabel22 = new JLabel();
    JLabel jLabel23 = new JLabel();
    GridLayout gridLayout3 = new GridLayout();
    GridLayout gridLayout4 = new GridLayout();
    GridLayout gridLayout5 = new GridLayout();
    JLabel jLabel24 = new JLabel();
    JLabel jLabel25 = new JLabel();
    GridLayout gridLayout6 = new GridLayout();
    JLabel jLabel26 = new JLabel();
    JLabel jLabel27 = new JLabel();
    GridLayout gridLayout7 = new GridLayout();
    JLabel jLabel28 = new JLabel();
    JLabel jLabel29 = new JLabel();
    JPanel jPanel20 = new JPanel();
    //定義放置星期的面板
    JPanel jPanel21 = new JPanel();
    GridLayout gridLayout8 = new GridLayout();
    BoxLayout2 boxLayout23 = new BoxLayout2();
    FlowLayout flowLayout1 = new FlowLayout();
    static SimpleDateFormat chineseDateFormat = new SimpleDateFormat(
            "yyyy年MM月dd日");
    ImageIcon ic[] = new ImageIcon[11]; //創(chuàng)建圖片數(shù)組對象
    Calendar ca = Calendar.getInstance(); //初始化各時間變量
    //取得時,分,秒,年,月,日
    public int hour = ca.get(Calendar.HOUR_OF_DAY);
    public int minute = ca.get(Calendar.MINUTE);
    public int second = ca.get(Calendar.SECOND);
    public int year = ca.get(Calendar.YEAR);
    public int month = ca.get(Calendar.MONTH) + 1;
    public int day = ca.get(Calendar.DAY_OF_MONTH);
    int lj = 1;
    //累計面板焦點秒數(shù),不超過15s
    public JPanel jp[] = {jPanel16, jPanel15, jPanel14, jPanel19, jPanel18,
                         jPanel17};
    //定義面板的數(shù)組
    int jps = -1; //當前哪個面板有焦點,-1表無任何面板有焦點,作為面板數(shù)組的下標
    Border border7 = BorderFactory.createLineBorder(SystemColor.textHighlight,
            2); //獲得焦點時的面板邊框
    Border border9 = BorderFactory.createLineBorder(SystemColor.window, 2);
    //未獲得焦點時的面板邊框

    public CalendarFrame() {
        try {
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            jbInit();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

    private void jbInit() throws Exception {
        border9 = BorderFactory.createLineBorder(SystemColor.inactiveCaption, 2);
        contentPane = (JPanel) getContentPane();
        contentPane.setLayout(borderLayout1);
        contentPane.setBackground(new Color(157, 185, 235));
        contentPane.setPreferredSize(new Dimension(105, 100));
        jLabel4.setText("時間:");
        jLabel5.setText("日期:");
        jButton1.setText("減少-");
        jButton1.addActionListener(new CalendarFrame_jButton1_actionAdapter(this));
        jButton2.setText("增加+");
        jButton2.addActionListener(new CalendarFrame_jButton2_actionAdapter(this));
        jButton3.setText(" 修改 ");
        jButton3.addActionListener(new CalendarFrame_jButton3_actionAdapter(this));
        jLabel7.setText("農(nóng)歷:");
        jLabel8.setText("  : ");
        jLabel9.setText("  :  ");
        jLabel10.setText("  -  ");
        jLabel11.setText("  -   ");
        jPanel16.setLayout(gridLayout2);
        jPanel19.setLayout(gridLayout3);
        jPanel15.setLayout(gridLayout4);
        jPanel14.setLayout(gridLayout5);
        jPanel18.setLayout(gridLayout6);
        jPanel17.setLayout(gridLayout7);
        jLabel29.setToolTipText("");
        jLabel29.setText(" 星期:");
        jPanel9.setLayout(gridLayout8);
        jLabel28.setText("MON"); //設置默認值為MON
        jPanel20.setLayout(boxLayout23);
        jPanel21.setLayout(flowLayout1);
        jPanel2.setBackground(SystemColor.inactiveCaption);
        jPanel2.setPreferredSize(new Dimension(105, 150));
        //設置面板的背景色
        jPanel13.setBackground(SystemColor.inactiveCaption);
        jPanel12.setBackground(SystemColor.inactiveCaption);
        jPanel11.setBackground(SystemColor.inactiveCaption);
        jPanel10.setBackground(SystemColor.inactiveCaption);
        jPanel9.setBackground(SystemColor.inactiveCaption);
        jPanel21.setBackground(SystemColor.inactiveCaption);
        jPanel20.setBackground(SystemColor.inactiveCaption);
        jPanel8.setBackground(SystemColor.inactiveCaption);
        jPanel8.setBorder(null);
        jPanel2.add(jPanel13);
        jPanel2.add(jPanel12);
        jPanel12.add(jLabel4);
        jPanel12.add(jPanel16);
        jPanel16.add(jLabel15);
        jPanel16.add(jLabel14);
        jPanel16.add(jLabel13);
        jPanel16.add(jLabel12);
        jPanel12.add(jLabel9);
        jPanel12.add(jPanel15);
        jPanel15.add(jLabel16);
        jPanel15.add(jLabel17);
        jPanel12.add(jLabel8);
        jPanel12.add(jPanel14);
        jPanel14.add(jLabel18);
        jPanel14.add(jLabel19);
        jPanel2.add(jPanel11);
        jPanel2.add(jPanel10);
        jPanel10.add(jLabel5);
        jPanel10.add(jPanel19);
        jPanel19.add(jLabel20);
        jPanel19.add(jLabel21);
        jPanel19.add(jLabel22);
        jPanel19.add(jLabel23);
        jPanel10.add(jLabel11);
        jPanel10.add(jPanel18);
        jPanel18.add(jLabel25);
        jPanel18.add(jLabel24);
        jPanel10.add(jLabel10);
        jPanel10.add(jPanel17);
        jPanel17.add(jLabel26);
        jPanel17.add(jLabel27);
        jPanel2.add(jPanel9);
        jPanel21.add(jLabel29);
        jPanel21.add(jLabel28);
        jPanel20.add(jLabel7);
        jPanel20.add(jLabel6);
        jPanel2.setLayout(new BoxLayout(jPanel2, BoxLayout.PAGE_AXIS));
        jPanel2.add(jPanel8);
        jPanel8.add(jButton3);
        jPanel8.add(jButton2);
        jPanel8.add(jButton1);
        jPanel9.add(jPanel21, null);
        jPanel9.add(jPanel20, null);
        contentPane.add(jPanel2, java.awt.BorderLayout.NORTH);
        for (int i = 0; i <= 9; i++) {
            ic[i] = new ImageIcon(CalendarFrame.class.getResource(
                    String.valueOf(i) + ".png"));
        }
        //取得圖片的路徑,定義圖片數(shù)組.
        ic[10] = new ImageIcon(CalendarFrame.class.getResource("k.png"));
        //初始化各顯示時間label的圖片為k.png
        jLabel15.setIcon(ic[10]);
        jLabel14.setIcon(ic[10]);
        jLabel13.setIcon(ic[10]);
        jLabel12.setIcon(ic[10]);
        jLabel16.setIcon(ic[10]);
        jLabel17.setIcon(ic[10]);
        jLabel18.setIcon(ic[10]);
        jLabel19.setIcon(ic[10]);
        jLabel20.setIcon(ic[10]);
        jLabel21.setIcon(ic[10]);
        jLabel22.setIcon(ic[10]);
        jLabel23.setIcon(ic[10]);
        jLabel24.setIcon(ic[10]);
        jLabel25.setIcon(ic[10]);
        jLabel26.setIcon(ic[10]);
        jLabel27.setIcon(ic[10]);
        //初始化TAB各要切換面板的邊框
        for (int i = 0; i <= 5; i++) {
            jp[i].setBorder(border9);
        }
    }

    public void run() {
        while (true) {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            setimageview(); //設置各時間的圖片顯示
            setnexttime(); //計算下一個時間、日期,即計算下一個year,month,day,hour,minute,second
            //如果存在焦點面板lj加一,如果秒數(shù)已到15秒重置邊框,即去除焦點面板的焦點
            if (jps != -1 && ++lj >= 15) {
                lj = 1; // 重新賦值累計秒數(shù)為初始值1
                //重新初始化jp[jps]面板的邊框,即去除焦點
                jp[jps].setBorder(border9);
                jps = -1; //設置無焦點面板
            }
        }
    }

    //計算下一個時間

    public void setnexttime() {
        //當年份到達2100年時,自動跳到1901年
        if (year == 2100) {
            javax.swing.JOptionPane.showMessageDialog(this,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美三级在线看| 中文字幕一区二区在线观看 | 久久嫩草精品久久久久| 亚洲摸摸操操av| 国内外成人在线| 欧美一区二区三区视频免费播放| 国产精品无人区| 国产美女在线精品| 91精品国产欧美一区二区18| 亚洲男人的天堂在线观看| 国产成人精品aa毛片| 91精品久久久久久久久99蜜臂| 亚洲视频在线一区二区| 国产成人激情av| 久久久久国产精品麻豆| 美日韩一区二区三区| 欧美日韩久久不卡| 一区二区三区蜜桃网| fc2成人免费人成在线观看播放| 国产亚洲欧美在线| 国产在线视频不卡二| 8x8x8国产精品| 日韩中文字幕麻豆| 欧美日本不卡视频| 天天av天天翘天天综合网色鬼国产| 91蝌蚪porny| 一区二区三区日韩精品视频| 色综合视频一区二区三区高清| 自拍偷自拍亚洲精品播放| 成人午夜大片免费观看| 国产人妖乱国产精品人妖| 国产福利一区在线观看| 中文字幕乱码久久午夜不卡| 成人毛片老司机大片| 亚洲色图一区二区| 日本精品一级二级| 亚洲第一在线综合网站| 欧美精品在线视频| 丝袜国产日韩另类美女| 555www色欧美视频| 久久99精品国产麻豆婷婷| 精品第一国产综合精品aⅴ| 国产麻豆一精品一av一免费 | 国产精品一区二区无线| 久久精品亚洲麻豆av一区二区| 国内成人自拍视频| 岛国av在线一区| 成人av资源网站| 色香蕉久久蜜桃| 亚洲一区二区不卡免费| 欧美亚洲一区二区在线| 婷婷夜色潮精品综合在线| 日韩一区二区精品在线观看| 国产成人av在线影院| 精品少妇一区二区三区| 亚洲一区二区三区不卡国产欧美| 国产亚洲成aⅴ人片在线观看| 91精品国产高清一区二区三区蜜臀| 一本大道久久精品懂色aⅴ| 国产成人午夜精品5599| 久久99国内精品| 美女mm1313爽爽久久久蜜臀| 污片在线观看一区二区| 亚洲国产精品麻豆| 一区二区在线观看免费| 亚洲欧洲日韩女同| 国产精品久久久久久久久果冻传媒| 久久蜜臀精品av| 久久综合色之久久综合| 2019国产精品| 久久久久97国产精华液好用吗| 日韩精品一区二区三区在线观看| 日韩一区二区三区电影在线观看 | 9色porny自拍视频一区二区| 国产一区二区三区在线观看免费视频| 久久电影网电视剧免费观看| 精品一区二区三区日韩| 精品在线视频一区| 国产乱码精品一区二区三区忘忧草| 久久66热re国产| 国产一区二区三区免费观看| 国产一区二区不卡| 岛国av在线一区| 色噜噜狠狠色综合中国| 欧美性猛片aaaaaaa做受| 欧美三级蜜桃2在线观看| 91精品国产欧美一区二区成人| 欧美一区二区黄| 久久久一区二区三区捆绑**| 亚洲国产岛国毛片在线| 亚洲欧美日韩在线| 亚洲国产精品久久不卡毛片 | 亚洲日本一区二区三区| 亚洲夂夂婷婷色拍ww47 | 国产一区二区在线免费观看| 国产传媒欧美日韩成人| 不卡的av在线| 欧美日韩黄色一区二区| 日韩欧美一区二区久久婷婷| 久久久精品国产99久久精品芒果| 国产精品久久三区| 亚洲国产日韩a在线播放性色| 青娱乐精品在线视频| 国产老女人精品毛片久久| 91伊人久久大香线蕉| 欧美男生操女生| 久久亚洲私人国产精品va媚药| 国产精品欧美综合在线| 亚洲一区二区欧美| 极品美女销魂一区二区三区| 99久久综合狠狠综合久久| 欧美日韩国产综合一区二区 | 亚洲三级电影全部在线观看高清| 亚洲午夜激情av| 国产成人一区二区精品非洲| 91亚洲精品一区二区乱码| 91精品久久久久久蜜臀| 国产精品美女www爽爽爽| 日韩不卡在线观看日韩不卡视频| 国产一区二区美女| 欧美偷拍一区二区| 26uuu亚洲婷婷狠狠天堂| 亚洲你懂的在线视频| 国产乱淫av一区二区三区| 欧美日韩一区高清| 成人欧美一区二区三区白人 | 欧美疯狂做受xxxx富婆| 久久久久久免费| 午夜不卡av免费| eeuss鲁一区二区三区| 日韩精品一区二区三区在线播放 | 亚洲色图在线看| 国产美女在线精品| 欧美电影一区二区| 亚洲精选视频免费看| 国产精品一区一区三区| 日韩欧美色综合| 亚洲高清视频在线| 成人激情电影免费在线观看| 日韩一区二区精品葵司在线| 一区二区三区在线免费观看| 成人h动漫精品一区二区| 欧美成人免费网站| 石原莉奈在线亚洲二区| 欧洲一区在线观看| 亚洲少妇最新在线视频| 大桥未久av一区二区三区中文| xnxx国产精品| 日本sm残虐另类| 91精品国产综合久久小美女| 夜夜亚洲天天久久| 色综合天天在线| 中文字幕五月欧美| 成人免费观看av| 久久久综合精品| 国产精品91一区二区| 欧美电影免费提供在线观看| 日欧美一区二区| 欧美一级日韩一级| 美女脱光内衣内裤视频久久影院| 欧美日本在线一区| 亚洲福利视频一区| 777精品伊人久久久久大香线蕉| 亚洲国产精品久久艾草纯爱| 欧美性猛片xxxx免费看久爱| 一区二区高清视频在线观看| 在线欧美日韩国产| 亚洲国产中文字幕在线视频综合| 欧美午夜片在线观看| 亚洲高清免费在线| 欧美一区2区视频在线观看| 天堂精品中文字幕在线| 欧美一区二区三区视频在线观看| 日本不卡视频在线观看| 欧美精品一区二区三区视频 | 一区二区三区波多野结衣在线观看| 91网站最新地址| 亚洲成人免费av| 日韩一二三区视频| 国产一区二区导航在线播放| 国产精品丝袜91| 色综合天天综合网国产成人综合天| 樱花草国产18久久久久| 欧美日韩一区在线观看| 久久se精品一区二区| 欧美激情在线一区二区| 一本一道久久a久久精品| 丝袜美腿亚洲色图| 欧美刺激午夜性久久久久久久| 极品少妇xxxx精品少妇偷拍| 国产精品免费av| 欧美美女喷水视频| 久久精品国产一区二区| 国产精品青草综合久久久久99| 在线观看区一区二| 紧缚奴在线一区二区三区| 国产精品久久久久久亚洲伦| 色噜噜狠狠成人网p站| 日韩国产精品91| 国产精品久久看|