private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        // TODO add your handling code here:
        JButton button = (JButton) evt.getSource();
        if ("启动评价".equals(button.getText())) {
            jButton4.setText("暂停评价");
            flagComment = true;
            new Thread() {

                public void run() {
                    while (flagComment && brush.getLists().size() > 0) {
                        //评价
                        ResourceInfo info = brush.getLists().get(0);
                        boolean ret = brush.commentById(info.getUrl());
                        if (ret) {
                            //action = Action.WORK_LOG;
                            message = info.getName() + "已经被评价啦。";
                            //成功了就删掉列表
                            brush.getLists().remove(0);
                            // System.out.println(message);
                            updateLog(message);
                            resource_time_label.setText("70");
                            jList1.setListData(brush.getLists().toArray());
                            resource_count_label.setText(brush.getLists().size() + "个");
                            jList1.invalidate();
                            //action = Action.NOTING;

                        } else {
                            updateLog(info.getName() + " 评价的时候出现错误！！");
                            resource_time_label.setText("70");
                            //错了继续再来。
                        }
                        try {
                            while (true) {
                                message = (Integer.parseInt(resource_time_label.getText()) - 1) + "";
                                Thread.sleep(1000);
                                resource_time_label.setText(message);
                                if (Integer.parseInt(message) <= 0 || !flagComment) {
                                    break;
                                }
                            }
                        } catch (InterruptedException ex) {
                            ex.printStackTrace();
                        }
                    }
                    if (flagComment == true) {
                        updateLog("已经没有东西好评价的啦。");
                    }
                    jButton4.setText("启动评价");
                }
            }.start();
        } else {
            flagComment = false;
            jButton4.setText("启动评价");
            updateLog("已经停止评价。可能需要等上60秒再开始操作啦。");
        }

    }//GEN-LAST:event_jButton4ActionPerformed