/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Filtros;

import clases.copiar_tabla;
import java.awt.Toolkit;
import java.awt.datatransfer.ClipboardOwner;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.*;
import java.util.Objects;
import java.util.Set;
import javax.swing.RowSorter;
import javax.swing.SortOrder;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import javax.swing.table.TableRowSorter;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.*;
import javax.swing.JOptionPane;
/**
 *
 * @author chuen
 */
public class Extraer_columnas extends javax.swing.JFrame implements ClipboardOwner {
public static double sumatoria=0;
ArrayList<String> columnaString = new ArrayList<String>(); 
ArrayList<Integer> columnaNum = new ArrayList<Integer>(); 
    public Extraer_columnas() {
        initComponents();
    }
public void setclipboard(){

DefaultTableModel dtm = (DefaultTableModel) tbl_freq.getModel();
int filas=dtm.getRowCount();
int columnas=dtm.getColumnCount();
String tablafrecuencias = "\n \n Tabla de frecuencias \n \n";

for (int i = 0; i < filas; i++) {
        for (int j = 0; j < columnas; j++) {
            String aux = String.valueOf(dtm.getValueAt(i, j));
            tablafrecuencias = tablafrecuencias + aux + ", ";
            
        }
        tablafrecuencias=tablafrecuencias+"\n";
        
    }
    

    String datos= "\nARQL_V2.0---------------------------"
            +"Media: "+media.getText()
            +"\nModa: "+moda.getText()
            +tablafrecuencias
            +"\n \nMediana: "+mediana_txt.getText()
            +"\nIntervalo: "+intervalo.getText()
            +"\nVarianza: "+varianzatxt.getText()
            +"\nDesviación estándar: "+desviacion_txt.getText();

    StringSelection txt= new StringSelection(datos);
    Toolkit.getDefaultToolkit().getSystemClipboard().setContents(txt, this);
    JOptionPane.showMessageDialog(null, "Datos copiados");
}
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        jPanel1 = new javax.swing.JPanel();
        jRadioButton1 = new javax.swing.JRadioButton();
        jRadioButton2 = new javax.swing.JRadioButton();
        jLabel1 = new javax.swing.JLabel();
        media = new javax.swing.JTextField();
        moda = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        mediana_txt = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        intervalo = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        desviacion_txt = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        n_moda = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        jScrollPane3 = new javax.swing.JScrollPane();
        tbl_freq = new javax.swing.JTable();
        jLabel7 = new javax.swing.JLabel();
        varianzatxt = new javax.swing.JTextField();
        jButton1 = new javax.swing.JButton();
        jScrollPane2 = new javax.swing.JScrollPane();
        tbl_person = new javax.swing.JTable();
        jButton2 = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jRadioButton1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jRadioButton1.setText("Fila");

        jRadioButton2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jRadioButton2.setText("Columna");

        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel1.setText("Media");

        media.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N

        moda.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N

        jLabel2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel2.setText("Moda**verif");

        mediana_txt.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N

        jLabel3.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel3.setText("Mediana");

        intervalo.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N

        jLabel4.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel4.setText("Intervalo");

        desviacion_txt.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N

        jLabel5.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel5.setText("Desviación estándar");

        n_moda.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N

        jLabel6.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel6.setText("N moda");

        tbl_freq.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        tbl_freq.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Valor", "Frecuencia"
            }
        ));
        tbl_freq.setRowHeight(25);
        tbl_freq.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tbl_freqMouseClicked(evt);
            }
        });
        jScrollPane3.setViewportView(tbl_freq);

        jLabel7.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel7.setText("Varianza");

        varianzatxt.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N

        jButton1.setText("Copiar datos");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(jPanel1Layout.createSequentialGroup()
                            .addComponent(jRadioButton1)
                            .addGap(18, 18, 18)
                            .addComponent(jRadioButton2))
                        .addGroup(jPanel1Layout.createSequentialGroup()
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(desviacion_txt, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(intervalo, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(mediana_txt, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(media, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(varianzatxt, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel1)
                                .addComponent(jLabel3)
                                .addComponent(jLabel4)
                                .addComponent(jLabel5)
                                .addComponent(jLabel7)))
                        .addGroup(jPanel1Layout.createSequentialGroup()
                            .addComponent(moda, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jLabel2)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(n_moda, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jLabel6))
                        .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
                    .addComponent(jButton1))
                .addContainerGap(173, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(15, 15, 15)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jRadioButton1)
                    .addComponent(jRadioButton2))
                .addGap(30, 30, 30)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(media, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(moda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel2)
                    .addComponent(n_moda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(28, 28, 28)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(mediana_txt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLabel4)
                    .addComponent(intervalo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(varianzatxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(19, 19, 19)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLabel5)
                    .addComponent(desviacion_txt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(26, 26, 26)
                .addComponent(jButton1)
                .addContainerGap(216, Short.MAX_VALUE))
        );

        jScrollPane1.setViewportView(jPanel1);

        tbl_person.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        tbl_person.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {"1", "2", "10"},
                {"1", "5", "10"},
                {"1", "7", "50"},
                {"4", "10", "90"},
                {"5", "11", "90"}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3"
            }
        ));
        tbl_person.setRowHeight(25);
        tbl_person.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tbl_personMouseClicked(evt);
            }
        });
        jScrollPane2.setViewportView(tbl_person);
        if (tbl_person.getColumnModel().getColumnCount() > 0) {
            tbl_person.getColumnModel().getColumn(2).setHeaderValue("Title 3");
        }

        jButton2.setText("Copiar tabla");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jMenu1.setText("Ir...");
        jMenuBar1.add(jMenu1);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane2)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jButton2)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 372, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 510, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addGap(7, 7, 7)
                .addComponent(jButton2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 458, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void tbl_personMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tbl_personMouseClicked
        columnaString.clear();
        columnaNum.clear();
        for (int i = 0; i < tbl_person.getRowCount(); i++) {
            
            columnaString.add(String.valueOf(tbl_person.getValueAt(i, tbl_person.getSelectedColumn())));
            columnaNum.add(Integer.parseInt((String) tbl_person.getValueAt(i, tbl_person.getSelectedColumn())));
            
        }
        media(columnaNum);
        moda(columnaNum);
        tabla_moda(columnaNum);
        intervalo(columnaNum);
        varianzacalc(columnaNum, media.getText());
        desviacion(varianzatxt.getText());
        medianacalc(columnaNum);
    }//GEN-LAST:event_tbl_personMouseClicked
private void medianacalc(ArrayList<Integer> conjunto){
 Collections.sort(conjunto);

int mediana;
int mitad = conjunto.size() / 2;
// Si la longitud es par, se deben promediar los del centro
if (conjunto.size() % 2 == 0) {
    mediana = ((conjunto.get(mitad - 1) + conjunto.get(mitad))/2);
} else {
    mediana = conjunto.get(mitad);
}

mediana_txt.setText(String.valueOf(mediana));
}
    
    private void varianzacalc(ArrayList<Integer> conjunto, String mediax){

double mediaf = Double.parseDouble(mediax);
double[]valor = new double[1];
double varianza=0;

    for (int i = 0; i < conjunto.size(); i++) {
         valor[0]= (double) conjunto.get(i);
        sumatoria= Math.pow(valor[0]-mediaf, 2);
        varianza=varianza+sumatoria;
        
    }
    varianza=varianza/(conjunto.size()-1);
    varianzatxt.setText(String.valueOf(varianza));
}
private void desviacion(String varianzax){


double varianzad= Double.parseDouble(varianzax) ;
double desviacion = 0;
desviacion = Math.sqrt(varianzad);

desviacion_txt.setText(String.valueOf(desviacion));
}
    private void tbl_freqMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tbl_freqMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_tbl_freqMouseClicked

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
setclipboard();
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
DefaultTableModel modelo = (DefaultTableModel) tbl_person.getModel();
copiar_tabla copiartab = new copiar_tabla();
copiartab.copiartabla(modelo);
    }//GEN-LAST:event_jButton2ActionPerformed
private void media(ArrayList<Integer> conjunto){
float promedio = 0;    
    for (int i = 0; i < conjunto.size(); i++) {
        promedio = promedio + conjunto.get(i);
    }
    promedio=promedio/conjunto.size();
    media.setText(String.valueOf(promedio));
}
private void intervalo(ArrayList<Integer> conjunto){
int max = Collections.max(conjunto);
int min = Collections.min(conjunto);
intervalo.setText(String.valueOf(max-min));
}

private void moda(ArrayList<Integer> conjunto){

int maximaVecesQueSeRepite = 0;
int modax = 0;

for(int i=0; i<conjunto.size(); i++){
int vecesQueSeRepite = 0;
for(int j=0; j<conjunto.size(); j++){
if(conjunto.get(i) == conjunto.get(j)){
vecesQueSeRepite++;
}
if(vecesQueSeRepite > maximaVecesQueSeRepite){
modax = conjunto.get(i);
maximaVecesQueSeRepite = vecesQueSeRepite;

}
}
}

     moda.setText(String.valueOf(modax));
    n_moda.setText(String.valueOf(maximaVecesQueSeRepite));   

}
private void tabla_moda(ArrayList<Integer> conjunto){
DefaultTableModel dtm = (DefaultTableModel) tbl_freq.getModel();
            int filas=dtm.getRowCount();
            for (int i = 0;filas>i; i++) {
                dtm.removeRow(0);
            }
    
ArrayList<Integer> conjuntodisctint = new ArrayList<>();

    for (int i = 0; i < conjunto.size(); i++) {
        conjuntodisctint.add(conjunto.get(i));
    }
    Set<Integer> hashSet = new HashSet<Integer>(conjuntodisctint);
        conjuntodisctint.clear();
        conjuntodisctint.addAll(hashSet);
int contador=0;

String [] fila = new String[2];


        
        for (int i = 0; i < conjuntodisctint.size(); i++) {
            System.out.println("for1 + conjunto disctint size "+conjuntodisctint.size() + " / conjunto size"+ conjunto.size());

            for (int j = 0; j < conjunto.size(); j++) {
                System.out.println("for 2");
                 if(conjuntodisctint.get(i)== conjunto.get(j)){
                 
                     fila[0]=String.valueOf(conjuntodisctint.get(i));
                     contador = contador+1;
                }
                
            }
                fila[1]=String.valueOf(contador);
                dtm.addRow(fila);
                contador=0;
               
    }
        
 TableRowSorter<TableModel> sorter = new TableRowSorter<TableModel>(tbl_freq.getModel());
tbl_freq.setRowSorter(sorter);

List<RowSorter.SortKey> sortKeys = new ArrayList<>(25);
sortKeys.add(new RowSorter.SortKey(1, SortOrder.DESCENDING));
sortKeys.add(new RowSorter.SortKey(0, SortOrder.ASCENDING));
sorter.setSortKeys(sortKeys);  
        
}


    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Extraer_columnas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Extraer_columnas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Extraer_columnas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Extraer_columnas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Extraer_columnas().setVisible(true);
            }
        });
    
    

}
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField desviacion_txt;
    private javax.swing.JTextField intervalo;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JRadioButton jRadioButton1;
    private javax.swing.JRadioButton jRadioButton2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JTextField media;
    private javax.swing.JTextField mediana_txt;
    private javax.swing.JTextField moda;
    private javax.swing.JTextField n_moda;
    private javax.swing.JTable tbl_freq;
    private javax.swing.JTable tbl_person;
    private javax.swing.JTextField varianzatxt;
    // End of variables declaration//GEN-END:variables

    @Override
    public void lostOwnership(Clipboard clipboard, Transferable contents) {
       //To change body of generated methods, choose Tools | Templates.
    }
}
