Example usage for javax.swing.text DefaultStyledDocument equals

List of usage examples for javax.swing.text DefaultStyledDocument equals

Introduction

In this page you can find the example usage for javax.swing.text DefaultStyledDocument equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Indicates whether some other object is "equal to" this one.

Usage

From source file:org.rockyroadshub.planner.core.gui.calendar.FormPane.java

private void update(DocumentEvent e) {
    DefaultStyledDocument doc = (DefaultStyledDocument) e.getDocument();
    if (doc.equals(documentEvt)) {
        update0(eventLimit, formatEvt, doc);
    } else if (doc.equals(documentLoc)) {
        update0(locationLimit, formatLoc, doc);
    } else if (doc.equals(documentDsc)) {
        update0(descriptionLimit, formatDsc, doc);
    }// w ww .  ja  v  a 2 s.  com
}