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

📄 事件提醒bean2.java

📁 个人开发的数字助理
💻 JAVA
字号:
package 事件提醒;

import java.awt.Color;
import java.awt.Rectangle;
import java.text.SimpleDateFormat;
import java.util.Date;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;

import Default.Clocklabel;


public class 事件提醒bean2 extends JFrame implements Runnable {

	private static final long	serialVersionUID	= 1L;

	private JPanel				jContentPane		= null;

	事件提醒bean1						selcet				= new 事件提醒bean1();

	public static 事件提醒bean2			thisClass			= new 事件提醒bean2();

	String						str					= null;

	Date						d					= null;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {

				thisClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
				thisClass.setVisible(true);
			}
		});
	}

	/**
	 * This is the default constructor
	 */
	public 事件提醒bean2()
		{
			super();
			initialize();
			this.setTitle("enjoy 个人任务管理软件---提醒薄");
			new Thread(this).start();
		}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		selcet.setBounds(new Rectangle(5, 26, 356, 428));
		this.setSize(364, 565);
		this.setContentPane(getJContentPane());
		this.setTitle("JFrame");
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null)
			{
				jContentPane = new JPanel();
				jContentPane.setLayout(null);
				jContentPane.add(selcet, null);
			}
		return jContentPane;
	}

	public void run() {

		while (true)
			{
				d = new Date();
				SimpleDateFormat sdf = new SimpleDateFormat("mm");// 其中yyyy-MM-dd是你要表示的格式
				// 可以任意组合,不限个数和次序;具体表示为:MM-month,dd-day,yyyy-year;kk-hour,mm-minute,ss-second;
				str = sdf.format(d);
//				 if(str.equals(Time.getMin()))
//				 if(Integer.parseInt(str)==事件提醒.MyButton.dateChooser.getSelectedMinite())
//				 JOptionPane
//				 .showMessageDialog(null, "时间到!");
				 try
				 {
									
				 this.wait(2000);
				 } catch (Exception e)
				 {
				 }
			}
	}

}

⌨️ 快捷键说明

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