91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 6KB
    文件類型: .java
    金幣: 1
    下載: 1 次
    發(fā)布日期: 2022-12-30
  • 語言: Java
  • 標(biāo)簽:

資源簡介

簡易鬧鐘源代碼,很不錯(cuò)的參考代碼,下載自取。謝謝!

資源截圖

代碼片段和文件信息

package?com;
import?java.awt.*;
import?java.awt.event.KeyEvent;

import?javax.print.DocFlavor.URL;
import?javax.swing.*;
import?java.util.*;
public?class?AlarmUI?extends?Jframe{
/**
?*?
?*/
private?static?final?long?serialVersionUID?=?6391413949851718108L;
private?JPanel?alarm_0;//主面板
private?JTabbedPane?tbPane;//tab面板
private?Image?image_1;//鬧鐘1界面背景
private?Image?image_2;//鬧鐘2界面背景
private?AlarmPanel?alarm_1;//鬧鐘1面板
private?AlarmPanel?alarm_2;//鬧鐘2面板
private?JLabel?timetip;//當(dāng)前日期時(shí)間提示標(biāo)簽
private?JLabel?timedisplay;//當(dāng)前日期時(shí)間顯示標(biāo)簽
private?JLabel?ringup;//響鈴時(shí)間標(biāo)簽
private?JLabel?hour;//時(shí)標(biāo)簽
private?JLabel?minute;//分標(biāo)簽
private?JLabel?second;//秒標(biāo)簽
private?JLabel?remark;//備注標(biāo)簽
private?JLabel?repeat;//重復(fù)提醒標(biāo)簽
private?JLabel?ringsound;//鬧鐘鈴聲標(biāo)簽
private?JLabel?tip;//窗體下標(biāo)提示標(biāo)簽
private?JLabel?tipContent;//窗體下標(biāo)提示內(nèi)容標(biāo)簽
private?JTextField?txt;//備注文本框
private?JComboBox?comH;//時(shí)設(shè)置組合框
private?JComboBox?comM;//分設(shè)置組合框
private?JComboBox?comS;//秒設(shè)置組合框
private?JComboBox?comRing;//鈴聲組合框
private?JButton?butTry;//鈴聲試聽按鈕
private?JButton?start;//開啟按鈕
private?JRadioButton?repeat_1;//重復(fù)單選按鈕
private?JRadioButton?repeat_2;//不重復(fù)單選按鈕
private?JMenuBar?menuBar;//菜單欄
private?JMenu?file;//文件菜單
private?JMenu?tools;//工具菜單
private?JMenu?help;//幫助菜單
private?JMenuItem?ring;//上傳鈴聲文件菜單項(xiàng)
private?JMenuItem?down;//下載鈴聲文件菜單項(xiàng)
private?JMenuItem?about;//關(guān)于菜單項(xiàng)
private?JMenuItem?exit;//退出菜單項(xiàng)?


public?AlarmUI(){
super(“鬧鐘“);
//創(chuàng)建圖像對(duì)象
?image_1=new?ImageIcon(AlarmUI.class.getResource(“/images/鬧鐘背景1.jpg“)).getImage();??
?image_2=new?ImageIcon(AlarmUI.class.getResource(“/images/鬧鐘背景2.jpg“)).getImage();??

//字體設(shè)置創(chuàng)建字體對(duì)象
Font?font1=new?Font(“隸書“Font.BOLD24);
Font?font2=new?Font(“楷書“Font.BOLD15);

//顯示當(dāng)前時(shí)間
timetip=new?JLabel(“當(dāng)前時(shí)間:“);
timetip.setFont(font1);
timetip.setBounds(40515060);
timedisplay=new?JLabel(new?Date().toString());
timedisplay.setFont(font1);
timedisplay.setBounds(160540060);

//鬧鐘1面板設(shè)置
alarm_1=new?AlarmPanel(image_1);
alarm_1.setPreferredSize(new?Dimension(500400));
alarm_1.setLayout(null);
ringup=new?JLabel(“響鈴時(shí)間:“);
ringup.setFont(font2);
ringup.setBounds(401010030);
String[]?h=new?String[]{“關(guān)閉““00““01““02““03““04““05““06““07““08““09““10““11““12““13““14““15““16““17““18““19““20““21““22““23“};
comH=new?JComboBox(h);
comH.setBounds(120106030);
comH.setFont(font2);
hour=new?JLabel(“時(shí)“);
hour.setFont(font2);
hour.setBounds(185103030);
String[]?m=new?String[]{“關(guān)閉““00““01““02““03““04““05““06““07““08““09““10““11““12““13““14““15““16““17““18““19““20““21““22““23““24““25“};
comM=new?JComboBox(m);
comM.setBounds(210106030);
comM.setFont(font2);
minute=new?JLabel(“分“);
minute.setFont(font2);
minute.setBounds(275103030);
comS=new?JComboBox(m);
comS.setBounds(300106030);
comS.setFont(font2);
second=new?JLabel(“秒“);
seco

評(píng)論

共有 條評(píng)論

相關(guān)資源