Java javax.swing.text PlainDocument fields, constructors, methods, implement or subclass

Example usage for Java javax.swing.text PlainDocument fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing.text PlainDocument.

The text is from its open source code.

Subclass

javax.swing.text.PlainDocument has subclasses.
Click this link to see all its subclasses.

Field

StringtabSizeAttribute
Name of the attribute that specifies the tab size for tabs contained in the content.

Constructor

PlainDocument()
Constructs a plain text document.

Method

voidaddDocumentListener(DocumentListener listener)
Adds a document listener for notification of any changes.
ElementgetParagraphElement(int pos)
Get the paragraph element containing the given position.
StringgetText(int offset, int length)
Gets a sequence of text from the document.