package BookTest;
import java.awt.*;
import java.awt.event.*;
import java.util.AbstractQueue;
import java.util.Vector;
import javax.swing.*;
import javax.swing.table.*;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeCellRenderer;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreeSelectionModel;
import javax.swing.event.*;
import javax.swing.table.TableColumnModel;
//import DbHelp.OperatorJobs;
import Dao.ArrayBook;
public class Test extends JFrame {
public JPanel jp=null;
public String aa;
//JTable jTable1 = new JTable();
public JTable jTable1=null;
private JTree jTree1;
DefaultTableModel mode;
private JScrollPane scrollPane = null;
DefaultMutableTreeNode node;
JButton[] btn={new JButton("增加"),new JButton("删除"),new JButton("修改"),new JButton("查询"),new JButton("重置")};
public JTextField[] txt ={new JTextField(),new JTextField(),new JTextField(),new JTextField(),new JTextField(),new JTextField()};
public String[] str1={"1","summer","boy","20","",""};
public String[] str2={"2","wulei","girl","19","",""};
public String[] str3={"3","west","boy","20","",""};
public String[] str4={"4","fish","girl","18","",""};
public String[] str5={"5","youku","boy","21","",""};
public String[] str6={"6","aa","boy","21","",""};
public String[][] tempData1={str1,str2,str3,str4,str5,str6};
public String[] aa1={"1","summer","boy","20","123","123"};
public String[] aa2={"2","wulei","girl","19","123",""};
public String[] aa3={"3","west","boy","20","123",""};
public String[] aa4={"4","fish","girl","18","1",""};
public String[] aa5={"5","youku","boy","21","12",""};
public String[] aa6={"6","aa","boy","21","123",""};
public String[][] tempData4={aa1,aa2,aa3,aa4,aa5,aa6};
//设置表头数据
public String[] tempTitle={"ID","标题","内容","作者","时间","是否选中"};
//设置表格的数据集合
Vector v1=new Vector();
Vecto