The BraceMatchingPlugin provides support for brace
matching in languages where the LanguageSupport provides an
implementation of the BraceProvider interface for getting
information about braces specific to a language. It will highlight
a pair of matching braces when the caret is on either side of
either brace. If the caret sits between two non-matching braces,
the plugin will highlight both pairs in different styles. If a
brace has no matching partner, it will be highlighted in a third
(non-matching) style.
To use this plugin, install it into the editor pane by calling
installPlugin()
on the BasicEditorPane. Make sure you have
implementations of the BraceProvider interface for languages you
want brace matching in.

caretUpdate(javax.swing.event.CaretEvent event)
Called when the caret position is updated.

void

changedUpdate(javax.swing.event.DocumentEvent event)
Gives notification that an attribute or set of attributes changed.

void

deinstall(BasicEditorPane editor)
Called when the plugin is being removed from the BasicEditorPane
(for example when the editor is closed.) This is used to notify
plugins that they should unregister any listeners that were
attached.

void

insertUpdate(javax.swing.event.DocumentEvent event)
Gives notification that there was an insert into the document.