java万年历拓展成日志记事本 下载本文

public void setYear(int year) {

this.year=year; }

public int getYear() {

return year; }

public void setMonth(int month) {

this.month=month; }

public int getMonth() {

return month; }

public void setDay(int day) {

this.day=day; }

public int getDay() { return day; }

public void setmessagebar(int year,int month,int day) {

messagebar.setText(\年\月\日\}

public void 设置文本区(String s) {

text.setText(s); }

public void 获取日志内容(int year,int month,int day) {

String key=\try

{

FileInputStream inOne=new FileInputStream(file); ObjectInputStream inTwo=new ObjectInputStream(inOne); table=(Hashtable)inTwo.readObject(); inOne.close(); inTwo.close(); }

catch(Exception ee) { }

if(table.containsKey(key)) {