private void serverTableMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_serverTableMouseClicked
        currentCheck.setSelected(false);
        try {
            int index = serverTable.getSelectedRow();
            if(index>=0){
                String server = (String)serverTable.getModel().getValueAt(index, 0);
            
                ServicioTablespace st = new ServicioTablespace(conexion.user,conexion.pass,conexion.ip,conexion.port,conexion.db);
                ArrayList<String> lista = st.listarTablas(server);
                
                for(int i=0;i<((DefaultTableModel)tablespaceTable.getModel()).getRowCount();){
                    ((DefaultTableModel)tablespaceTable.getModel()).removeRow(i);
                }
                for(int i=0;i<lista.size();i++){
                    ((DefaultTableModel)tablespaceTable.getModel()).addRow(new Object[]{lista.get(i)});
                }
            }
             
            
        } catch (GlobalException | NoDataException ex) {
            Logger.getLogger(ConectadoGUI.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_serverTableMouseClicked