// 程序主类 public class Diary { public static void main(String args[]) throws Exception { new LoginWindow(); Remember win=new Remember(); win
pack(); } } import javax
*; import javax
*; import java
*; import java
*; import javax
*; import java
*; import java
*; // 日记本类 class Remember extends JFrame implements TreeSelectionListener,ActionListener { private static final String DiaryRoot = null; JTree tree=null; int i=0,r=255,g=255,b=255; JTextArea text=new JTextArea(" ",20,50); DefaultMutableTreeNode root; DefaultMutableTreeNode month[]=new DefaultMutableTreeNode[13]; JButton b_save=new JButton("保存"), b_fontCommen=new JButton("还原"), b_fontBig=new JButton("大字"), b_fontRed=new JButton("红色"), b_fontBlue=new JButton("蓝色"), b_bg=new JButton("背景"); R