));Р notepad.setDay(day);Р notepad.设置信息条(year,month,day);Р notepad.设置文本区(null);Р notepad.获取日志内容(year,month,day);Р } Р catch(Exception ee)Р {Р }Р }Р public void mouseClicked(MouseEvent e)Р {Р }Р public void mouseReleased(MouseEvent e)Р {Р }Р public void mouseEntered(MouseEvent e)Р {Р }Р public void mouseExited(MouseEvent e)Р {Р }Р public static void main(String args[])Р {Р Calendar calendar=Calendar.getInstance(); Р int y=calendar.get(Calendar.YEAR); Р int m=calendar.get(Calendar.MONTH)+1; Р int d=calendar.get(Calendar.DAY_OF_MONTH);Р new CalendarPad(y,m,d);Р }Р} Р import javax.swing.*;Рimport java.awt.*;Рimport java.awt.event.*;Рpublic class Month extends Box implements ActionListenerР{Р int month; Р JTextField showMonth=null; Р JButton 下月,上月;Р CalendarPad 日历;Р public Month(CalendarPad 日历)