private void filterByState() {
        genModelCopies();
        stateCopies = new ArrayList();
        ArrayList<Copy> auxCopies2 = new ArrayList();
        if (jRadioStored.isSelected()) {
            for (int i = 0; i < listCopies.size(); i++) {
                if (listCopies.get(i).getState().equals(Copy.CopyState.STORED)) {
                    stateCopies.add(listCopies.get(i));
                }
            }
        } else {
            for (int i = 0; i < listCopies.size(); i++) {
                stateCopies.add(listCopies.get(i));
            }
        }
        modelCopies.clear();
        if (!jTextFieldSearch.getText().equals("") && !jTextFieldSearch.getText().startsWith("Introduce tu búsqueda...")) {
            auxCopies2 = filterByTAI(listCopies);
            for (int i = 0; i < auxCopies2.size(); i++) {
                modelCopies.addElement(auxCopies2.get(i));
            }
        } else {
            for (int i = 0; i < stateCopies.size(); i++) {
                modelCopies.addElement(stateCopies.get(i));
            }
        }
    }