public DBDialog() throws InstantiationException, ClassNotFoundException, IllegalAccessException, SQLException {
        initComponents();
            db= new Database();
            db.connect();
            myModel=new TableModel(db.GetConnect());
            jTable1.setModel(myModel);
            jTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            //jTable1.getSelectionModel().addListSelectionListener(this);
    }