StyleApplicator

object StyleApplicator

Utility for applying bound styles to StyledDocuments.

Author

Todd L Smith

Functions

Link copied to clipboard
fun StyledDocument.applyStyleRuns(runs: List<StyleRun>, replace: Boolean = true)

Apply all style runs to the receiver. Each style name is treated as a comma-separated composite. Rendered styles compose rather than replace. Must be invoked on the Swing UI thread.