Example usage for javax.swing.text DefaultHighlighter subclass-usage

List of usage examples for javax.swing.text DefaultHighlighter subclass-usage

Introduction

In this page you can find the example usage for javax.swing.text DefaultHighlighter subclass-usage.

Usage

From source file Main.java

class UnderlineHighlighter extends DefaultHighlighter {

    protected static final Highlighter.HighlightPainter sharedPainter = new UnderlineHighlightPainter(null);
    protected Highlighter.HighlightPainter painter;

    public UnderlineHighlighter(Color c) {