private void currentCheckActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_currentCheckActionPerformed
        serverTable.clearSelection();
        if(currentCheck.isSelected()){
            try {       
            ServicioTablespace st = new ServicioTablespace(conexion.user,conexion.pass,conexion.ip,conexion.port,conexion.db);
            ArrayList<String> lista = st.listarTablas(conexion.db);
            
            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);
            }
        }
        else{
            serverTable.clearSelection();
            for(int i=0;i<((DefaultTableModel)tablespaceTable.getModel()).getRowCount();){
                ((DefaultTableModel)tablespaceTable.getModel()).removeRow(i);
            }
        }
        
    }//GEN-LAST:event_currentCheckActionPerformed