资源简介
用JAVA编写的备忘录, 可以记录下你每天做的事情,可以查看你以前做的事情,很有帮助
代码片段和文件信息
import java.awt.*;
import java.awt.event.*;
import java.awt.Color;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.border.*;
import java.util.*;
import java.util.Calendar;
import java.io.*;
import java.io.IOException;
public class calendar extends Jframe
implements ActionListenerMouseListener
{
int yearmonthday;
int yearafterquerymonthafterquery;
int startday;
String SwitchMonth;
String key;
int changeyearmessage;
int changemonthmessage;
int priormonthprioryear;
boolean ischange=falseischange_priornext=false;
private JPanel LeftPaneRightPane;
private JLabel YearLabel;
private JLabel MonthLabel;
private JComboBox MonthCombobox;
private JTextField ShowDays[]=new JTextField[42];
private JTextField YearText;
private JLabel Ask;
private JLabel ShowDate;
private JLabel Blank;
private JLabel show;
private JLabel TopBartitle[]=new JLabel[7];
private JButton ToToday;
private JButton Query;
private String week[]={“星期日““星期一““星期二““星期三““星期四““星期五““星期六“};
private JLabel NorthMonthDayYear;
private JTextArea CenterText;
private JButton SouthSaveSouthDelete;
private JButton PriorMonth;
private JButton NextMonth;
public calendar(int yearint monthint day)
{
settitle(“备忘录“);
//the layout about left of Jpane
RightPane=new JPanel();
JPanel rightCenter=new JPanel();
JPanel rightNorth=new JPanel();
RightPane.setLayout(new BorderLayout());
RightPane.add(rightNorthBorderLayout.NORTH);
RightPane.add(rightCenterBorderLayout.CENTER);
RightPane.add(ToToday=new JButton(“Go to today“)BorderLayout.SOUTH);
ToToday.setBackground(Color.cyan);
ToToday.addActionListener(this);
RightPane.validate();
rightNorth.setLayout(new GridLayout(310-2));
rightNorth.add(Ask=new JLabel(“请输入你要查询的日子“));
JPanel North=new JPanel(new FlowLayout(080));
rightNorth.add(North);
North.add(YearLabel=new JLabel(“年:“));
North.add(YearText=new JTextField(4));
YearText.setBackground(Color.getHSBColor(302050));
YearText.setForeground(Color.blue);
YearText.setFont(new Font(“TimesRoman“Font.BOLD17));
YearText.addActionListener(this);
YearText.setFocusable(true);
North.add(Blank=new JLabel(“月:“));
North.add(MonthCombobox=new JComboBox());
//add month to monthcombobox
for(int i=1;i<=12;i++)
{
MonthCombobox.addItem(new Integer(i));
}
//Switch the month
MonthCombobox.setForeground(Color.blue);
MonthCombobox.setFont(new Font(“TimesRoman“Font.BOLD12));
North.add(Query=new JButton(“查询“));
Query.setForeground(Color.blue);
Query.addActionListener(this);
JPanel North2=new JPanel(new FlowLayout());
rightNorth.add(North2);
North2.add(PriorMonth=new
- 上一篇:成组链接法Java版
- 下一篇:Android下雪特效
相关资源
- 成组链接法Java版
- JavaWeb增删改查
- mysql-connector-java-5.1.36-bin.zip
- 解决SAT问题的JAVA代码
- 简单函数绘图语言java
- rxtxParallel+rxtxSerial32位和64位
- 生产者和消费者的javaGUI
- 期刊投稿系统java
- 郭永峰Java全套资料百度网盘20180627更
- 操作系统页面置换算法-java界面化实现
- 基于JAVA的简易银行系统
- Java实现自动售货机程序
- java写的物流管理系统+源码
- 仓库管理系统,Spring+SpringMVC+Mybatis
- JAVA复习题及答案
- RSA加解密算法java源代码
- java多线程综合实验2020年1月武汉理工
- 基于安全的即时通信系统设计.zip
- (JAVA+MySQL)课程设计 学生选课管理系
- 推箱子源码及素材Java实现
- JAVA课程大作业
- 三角形问题JAVA.rar.rar
- 基于SQLsever2012的Java swing停车管理系统
- JavaWeb项目实战
- 简单的jdbc+mysql+jsp实现的增删改查
- jsp连接SQLserver数据库实现增删改查.这
- javax.jws-3.1.1-b01.jar
- java实现完整版猜拳小游戏
- Java课程设计医院门诊管理系统解压密
- javaweb课程教学网站基本的增删改查功
评论
共有 条评论