@SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">                          
    private void initComponents() {

    	mainPanel = new javax.swing.JPanel();
        TabbedPane = new javax.swing.JTabbedPane();
        historyPanel = new javax.swing.JPanel();
        hisComboBox = new javax.swing.JComboBox();
        his_Button = new javax.swing.JButton();
        hisPanel1 = new javax.swing.JPanel();
        testPanel = new ChartPanel(null);
        timeComboBox0 = new javax.swing.JComboBox();
        timeComboBox1 = new javax.swing.JComboBox();
        toLabel = new javax.swing.JLabel();
        timeComboBox2 = new javax.swing.JComboBox();
        timeComboBox3 = new javax.swing.JComboBox();
        lightPointPanel = new javax.swing.JPanel();
        lightPanel0 = new javax.swing.JPanel();
        lightLabel0 = new javax.swing.JLabel();
        lightPanel1 = new javax.swing.JPanel();
        lightLabel1 = new javax.swing.JLabel();
        lightPanel2 = new javax.swing.JPanel();
        lightLabel2 = new javax.swing.JLabel();
        lightPanel3 = new javax.swing.JPanel();
        lightLabel3 = new javax.swing.JLabel();
        distencePanel = new javax.swing.JPanel();
        disLabel = new javax.swing.JLabel();
        disTextField = new javax.swing.JTextField();
        disComboBox = new javax.swing.JComboBox();
        disButton = new javax.swing.JButton();
        jPanel2 = new ChartPanel(null);
        recommendationPanel = new javax.swing.JPanel();
        recomComboBox = new javax.swing.JComboBox();
        recomButton = new javax.swing.JButton();
        recomLabel = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        accountLabel = new javax.swing.JLabel();
        account = new javax.swing.JLabel();
        bar = new javax.swing.JLabel();
        MenuBar = new javax.swing.JMenuBar();
        docMenu = new javax.swing.JMenu();
        docMenuItem0 = new javax.swing.JMenuItem();
        docMenuItem1 = new javax.swing.JMenuItem();
        docMenuItem2 = new javax.swing.JMenuItem();
        accountMenu = new javax.swing.JMenu();
        accMenuItem0 = new javax.swing.JMenuItem();
        sysMenu = new javax.swing.JMenu();
        sysMenuItem0 = new javax.swing.JMenuItem();
        sysMenuItem1 = new javax.swing.JMenuItem();
        helpMenu = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        TabbedPane.setToolTipText("");
        TabbedPane.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

        hisComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "按分类", "按时间", "按时间区间" }));

        his_Button.setText("查询");
        his_Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                his_ButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout testPanelLayout = new javax.swing.GroupLayout(testPanel);
        testPanel.setLayout(testPanelLayout);
        testPanelLayout.setHorizontalGroup(
            testPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        testPanelLayout.setVerticalGroup(
            testPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 371, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout hisPanel1Layout = new javax.swing.GroupLayout(hisPanel1);
        hisPanel1.setLayout(hisPanel1Layout);
        hisPanel1Layout.setHorizontalGroup(
            hisPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(testPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        hisPanel1Layout.setVerticalGroup(
            hisPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(testPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        timeComboBox0.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013", "2014" }));

        timeComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12" }));

        toLabel.setFont(new java.awt.Font("黑体", 0, 14)); // NOI18N
        toLabel.setText("至");

        timeComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013", "2014" }));

        timeComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12" }));

        javax.swing.GroupLayout historyPanelLayout = new javax.swing.GroupLayout(historyPanel);
        historyPanel.setLayout(historyPanelLayout);
        historyPanelLayout.setHorizontalGroup(
            historyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(historyPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(historyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(hisPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(historyPanelLayout.createSequentialGroup()
                        .addComponent(hisComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(timeComboBox0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(timeComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(toLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(timeComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(timeComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(his_Button)
                        .addContainerGap(223, Short.MAX_VALUE))))
        );
        historyPanelLayout.setVerticalGroup(
            historyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(historyPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(historyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(hisComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(timeComboBox0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(timeComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(toLabel)
                    .addComponent(timeComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(timeComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(his_Button))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(hisPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        TabbedPane.addTab("我的历史", historyPanel);

        javax.swing.GroupLayout lightPanel0Layout = new javax.swing.GroupLayout(lightPanel0);
        lightPanel0.setLayout(lightPanel0Layout);
        lightPanel0Layout.setHorizontalGroup(
            lightPanel0Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(lightPanel0Layout.createSequentialGroup()
                .addComponent(lightLabel0)
                .addGap(0, 622, Short.MAX_VALUE))
        );
        lightPanel0Layout.setVerticalGroup(
            lightPanel0Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(lightPanel0Layout.createSequentialGroup()
                .addComponent(lightLabel0)
                .addGap(0, 85, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout lightPanel1Layout = new javax.swing.GroupLayout(lightPanel1);
        lightPanel1.setLayout(lightPanel1Layout);
        lightPanel1Layout.setHorizontalGroup(
            lightPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(lightPanel1Layout.createSequentialGroup()
                .addComponent(lightLabel1)
                .addGap(0, 0, Short.MAX_VALUE))
        );
        lightPanel1Layout.setVerticalGroup(
            lightPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(lightPanel1Layout.createSequentialGroup()
                .addComponent(lightLabel1)
                .addGap(0, 85, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout lightPanel2Layout = new javax.swing.GroupLayout(lightPanel2);
        lightPanel2.setLayout(lightPanel2Layout);
        lightPanel2Layout.setHorizontalGroup(
            lightPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(lightPanel2Layout.createSequentialGroup()
                .addComponent(lightLabel2)
                .addGap(0, 0, Short.MAX_VALUE))
        );
        lightPanel2Layout.setVerticalGroup(
            lightPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(lightPanel2Layout.createSequentialGroup()
                .addComponent(lightLabel2)
                .addGap(0, 85, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout lightPanel3Layout = new javax.swing.GroupLayout(lightPanel3);
        lightPanel3.setLayout(lightPanel3Layout);
        lightPanel3Layout.setHorizontalGroup(
            lightPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(lightPanel3Layout.createSequentialGroup()
                .addComponent(lightLabel3)
                .addGap(0, 0, Short.MAX_VALUE))
        );
        lightPanel3Layout.setVerticalGroup(
            lightPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(lightPanel3Layout.createSequentialGroup()
                .addComponent(lightLabel3)
                .addGap(0, 123, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout lightPointPanelLayout = new javax.swing.GroupLayout(lightPointPanel);
        lightPointPanel.setLayout(lightPointPanelLayout);
        lightPointPanelLayout.setHorizontalGroup(
            lightPointPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lightPanel0, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(lightPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(lightPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(lightPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        lightPointPanelLayout.setVerticalGroup(
            lightPointPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(lightPointPanelLayout.createSequentialGroup()
                .addComponent(lightPanel0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lightPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lightPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lightPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        TabbedPane.addTab("我的亮点", lightPointPanel);

        disLabel.setText("对比账号：");

        disTextField.setText("对比账号");

        disComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "按分类", "按时间" }));

        disButton.setText("查询");
        disButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                disButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 371, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout distencePanelLayout = new javax.swing.GroupLayout(distencePanel);
        distencePanel.setLayout(distencePanelLayout);
        distencePanelLayout.setHorizontalGroup(
            distencePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(distencePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(distencePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(distencePanelLayout.createSequentialGroup()
                        .addComponent(disLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(disTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(disComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(disButton)
                        .addContainerGap(359, Short.MAX_VALUE))))
        );
        distencePanelLayout.setVerticalGroup(
            distencePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(distencePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(distencePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(disLabel)
                    .addComponent(disTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(disComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(disButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        TabbedPane.addTab("差距对比", distencePanel);

        recomComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "默认推荐", "动态规划", "贪心", "数据结构", "图论" }));

        recomButton.setText("查询");

        javax.swing.GroupLayout recommendationPanelLayout = new javax.swing.GroupLayout(recommendationPanel);
        recommendationPanel.setLayout(recommendationPanelLayout);
        recommendationPanelLayout.setHorizontalGroup(
            recommendationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(recommendationPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(recommendationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(recommendationPanelLayout.createSequentialGroup()
                        .addComponent(recomComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(recomButton))
                    .addComponent(recomLabel))
                .addContainerGap(475, Short.MAX_VALUE))
        );
        recommendationPanelLayout.setVerticalGroup(
            recommendationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(recommendationPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(recommendationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(recomComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(recomButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(recomLabel)
                .addContainerGap(371, Short.MAX_VALUE))
        );

        TabbedPane.addTab("荐题系统", recommendationPanel);

        accountLabel.setText("当前账号：");

        account.setText("null");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(accountLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(account)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 75, Short.MAX_VALUE)
                .addComponent(bar)
                .addGap(69, 69, 69))
        );
        jPanel1Layout.setVerticalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(accountLabel)
                        .addComponent(account)
                        .addComponent(bar))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            );

        javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
        mainPanel.setLayout(mainPanelLayout);
        mainPanelLayout.setHorizontalGroup(
            mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(TabbedPane)
            .addGroup(mainPanelLayout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );
        mainPanelLayout.setVerticalGroup(
            mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(mainPanelLayout.createSequentialGroup()
                .addComponent(TabbedPane, javax.swing.GroupLayout.PREFERRED_SIZE, 439, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(75, 75, 75))
        );

        docMenu.setBorder(null);
        docMenu.setText("文件");
        docMenu.setToolTipText("");

        docMenuItem0.setText("导出分类");
        docMenuItem0.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                //docMenuItem0ActionPerformed(evt);
            	String str = new String();
            	try {
            		FileReader fr = new FileReader("E:\\doc\\sort.txt");
                    BufferedReader br=new BufferedReader(fr);
                    JFileChooser jf = new JFileChooser();
                    jf.setFileSelectionMode(JFileChooser.SAVE_DIALOG | JFileChooser.DIRECTORIES_ONLY);
                    jf.showDialog(null,null);
                    File fi = jf.getSelectedFile();
                    String f = fi.getAbsolutePath()+"\\sort.txt";
                    System.out.println("save: "+f);
                    //FileWriter out = new FileWriter(f);
                    BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(new File(f))));
                    while((str = br.readLine())!=null) {
                        out.write(str);
                        out.newLine();
                        out.flush();
                    }
                    br.close();
                    out.close();
            	}
            	catch(Exception e){}
            }
        });
        docMenu.add(docMenuItem0);

        docMenuItem1.setText("导入分类");
        docMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                //docMenuItem0ActionPerformed(evt);
            	JFileChooser fd = new JFileChooser();
            	//fd.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            	fd.showOpenDialog(null);
            	File sourceFile = fd.getSelectedFile();
            	String sort = "E:\\doc\\sort.txt";
            	File targetFile = new File(sort);
            	
            	if(sourceFile != null){
            		FileInputStream fi = null;
                    FileOutputStream fo = null;
                    FileChannel in = null;
                    FileChannel out = null;
                    try {
                        fi = new FileInputStream(sourceFile);
                        fo = new FileOutputStream(targetFile);
                        in = fi.getChannel();//得到对应的文件通道
                        out = fo.getChannel();//得到对应的文件通道
                        in.transferTo(0, in.size(), out);//连接两个通道，并且从in通道读取，然后写入out通道
                    } catch (IOException e) {
                        e.printStackTrace();
                    } finally {
                        try {
                            fi.close();
                            in.close();
                            fo.close();
                            out.close();
                        } catch (IOException e) {
                            e.printStackTrace();
                        }
                    }
            	}
            	initData();
            	loadChart();
            }
        });
        docMenu.add(docMenuItem1);
        
        docMenuItem2.setText("编辑分类");
        docMenu.add(docMenuItem2);
        

        MenuBar.add(docMenu);

        accountMenu.setText("账号");

        accMenuItem0.setText("切换帐号");
        accountMenu.add(accMenuItem0);

        MenuBar.add(accountMenu);

        sysMenu.setBorder(null);
        sysMenu.setText("系统");

        sysMenuItem0.setText("更新软件");
        sysMenu.add(sysMenuItem0);

        sysMenuItem1.setText("联系我们");
        sysMenu.add(sysMenuItem1);

        MenuBar.add(sysMenu);

        helpMenu.setText("帮助");
        MenuBar.add(helpMenu);

        setJMenuBar(MenuBar);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(mainPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(mainPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 489, Short.MAX_VALUE)
                .addGap(0, 0, 0))
        );

        pack();
    }// </editor-fold>