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

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

Introduction

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

Usage

From source file FancyCaret.java

public class FancyCaret extends DefaultCaret {

    protected synchronized void damage(Rectangle r) {
        if (r == null)
            return;

From source file CornerCaret.java

public class CornerCaret extends DefaultCaret {

    public CornerCaret() {
        setBlinkRate(500); // half a second
    }

From source file Main.java

class MyCaret extends DefaultCaret {

    @Override
    protected void adjustVisibility(Rectangle nloc) {

    }