private void findButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_findButtonActionPerformed
         
        String searchTerm = findField.getText().toLowerCase();
        symbolDataArea.requestFocusInWindow();
        if (searchTerm != null && searchTerm.length() > 0) {
            Document document = symbolDataArea.getDocument();
            int searchTermLength = searchTerm.length();
            try {
                boolean found = false;
                int position = 0;
                while (position + searchTermLength <= document.getLength()) {
                    String match = document.getText(position, searchTermLength).toLowerCase();
                    if (match.equals(searchTerm)) {
                        found = true;
                        break;
                    }
                    position++;
                }
                if (found) {
                    Rectangle viewRect = symbolDataArea.modelToView(position);
                    symbolDataArea.scrollRectToVisible(viewRect);
                    symbolDataArea.setCaretPosition(position + searchTermLength);
                    symbolDataArea.moveCaretPosition(position);
                    position += searchTermLength;
                }
            } catch (Exception exp) {
                exp.printStackTrace();
            }

        }
    }//GEN-LAST:event_findButtonActionPerformed