private void filterButtonActionPerformed(ActionEvent evt) {//GEN-FIRST:event_filterButtonActionPerformed
        String keyword = searchTextField.getText().toLowerCase();
        Date from = (Date) dateFromSpinner.getValue();
        Date to = (Date) dateToSpinner.getValue();
        if (from.after(to)) {
            Date temp = to;
            to = from;
            from = temp;
        }
        
        Vector<NotePad> vector = new Vector<>();
        for (NotePad notePad : NotePadManager.getInstance().getNotepads()) {
            boolean isFilterSuccess = false;
            if (!keyword.isEmpty()) {
                // Фильтр по значению
                if (notePad.getDescription().toLowerCase().indexOf(keyword) >= 0) {
                    isFilterSuccess = true;
                }
                if (notePad.getName().toLowerCase().indexOf(keyword) >= 0) {
                    isFilterSuccess = true;
                }
            }
            // Фильтр по дате
            Date current = notePad.getDate();
            if (from.before(current) && to.after(current)) {
                isFilterSuccess = true;
            }

            if (isFilterSuccess) vector.add(notePad);
        }
        noteList.setListData(vector);
    }//GEN-LAST:event_filterButtonActionPerformed