public class MatchingHighlighter
extends Object
implements CaretListener
Represents highlighter to highlight matched parentheses, brackets and curly braces when caret touching them
| Constructor and description |
|---|
MatchingHighlighter(SmartDocumentFilter smartDocumentFilter, JTextPane textEditor)Creates a highlighter bound to the supplied document filter and editor. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
caretUpdate(CaretEvent e){@inheritDoc} |
|
public void |
highlight()Schedules highlighting for the delimiter nearest the caret. |
Creates a highlighter bound to the supplied document filter and editor.
smartDocumentFilter - the token source used to find matching delimiterstextEditor - the text pane whose delimiters are highlighted{@inheritDoc}
Schedules highlighting for the delimiter nearest the caret.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.