void function ( int arg0 , int arg1 ) { int loc0 = arg1 - arg0 ; ( ( DefaultStyledDocument ) textComponentToSearch . getDocument ( ) ) . setCharacterAttributes ( arg0 , loc0 , defaultStyle , true ) ; }
this removes the highlight from the specified existing text . unfortunately , it always sets it to the default style . so it removes any previous styling . concode_field_sep AttributeSet defaultStyle concode_elem_sep List<TextBlockSearchEditor.SearchResult> currentHighlights concode_elem_sep JTextPane textComponentToSearch concode_elem_sep AttributeSet emphasizedHighlightStyle concode_elem_sep AttributeSet highlightStyle concode_field_sep String getTextToSearch concode_elem_sep int getCaretLocation concode_elem_sep void searchComplete concode_elem_sep void removeExistingHighlights concode_elem_sep void highlightResults concode_elem_sep void highlightText concode_elem_sep void removeResultHighlights concode_elem_sep void highlightAndScrollToResult