Uses of Class javax.swing.text.BadLocationException

Uses in package javax.swing.text.html

Methods which throw type javax.swing.text.BadLocationException

void
The parser calls this method after it finishes parsing the document.

Uses in package javax.swing.plaf.basic

Methods which throw type javax.swing.text.BadLocationException

int
Rectangle
Rectangle

Uses in package javax.swing.text

Methods which throw type javax.swing.text.BadLocationException

Object
Object
void
DefaultHighlighter.changeHighlight(Object tag, int p0, int p1)
void
Highlighter.changeHighlight(Object tag, int p0, int p1)
Position
Creates a mark in the character content at the specified offset.
Position
Position
Creates a mark in the character content at the specified offset.
Position
Creates and returns a mark at the specified position.
Position
int
PasswordView.drawSelectedText(Graphics g, int x, int y, int p0, int p1)
Draws selected text at a given position.
int
PlainView.drawSelectedText(Graphics g, int x, int y, int p0, int p1)
int
PasswordView.drawUnselectedText(Graphics g, int x, int y, int p0, int p1)
Draws unselected text at a given position.
int
PlainView.drawUnselectedText(Graphics g, int x, int y, int p0, int p1)
void
AbstractDocument.Content.getChars(int where, int len, Segment txt)
void
GapContent.getChars(int where, int len, Segment txt)
Fetches a piece of content and stores it in a Segment object.
void
StringContent.getChars(int where, int len, Segment txt)
String
AbstractDocument.Content.getString(int where, int len)
String
GapContent.getString(int where, int len)
Returns a piece of content as String.
String
StringContent.getString(int where, int len)
String
AbstractDocument.getText(int offset, int length)
Returns the textual content starting at offset with a length of length.
String
Document.getText(int offset, int length)
Returns the textual content starting at offset with a length of length.
String
JTextComponent.getText(int offset, int length)
Retrieves a part of the current text in this document.
void
AbstractDocument.getText(int offset, int length, Segment segment)
Fetch the textual content starting at offset with a length of length and store it in txt.
void
Document.getText(int offset, int length, Segment txt)
Fetch the textual content starting at offset with a length of length and store it in txt.
UndoableEdit
UndoableEdit
GapContent.insertString(int where, String str)
Inserts a string at the specified position.
UndoableEdit
void
AbstractDocument.insertString(int offset, String text, AttributeSet attributes)
Inserts a piece of text with an AttributeSet at the specified offset.
void
Document.insertString(int offset, String str, AttributeSet a)
Inserts a piece of text with an AttributeSet at the specified offset.
void
void
Rectangle
Shape
Shape
Shape
PlainView.modelToView(int position, Shape a, Position.Bias b)
void
DefaultEditorKit.read(InputStream in, Document document, int offset)
void
EditorKit.read(InputStream in, Document doc, int pos)
void
DefaultEditorKit.read(Reader in, Document document, int offset)
void
EditorKit.read(Reader in, Document doc, int pos)
void
AbstractDocument.remove(int offset, int length)
Removes a piece of content.
UndoableEdit
AbstractDocument.Content.remove(int where, int nitems)
void
Document.remove(int offs, int len)
Removes a piece of content.
void
DocumentFilter.FilterBypass.remove(int offset, int length)
UndoableEdit
GapContent.remove(int where, int nitems)
Removes a piece of content at th specified position.
UndoableEdit
StringContent.remove(int where, int nitems)
void
DocumentFilter.remove(DocumentFilter.FilterBypass fb, int offset, int length)
void
AbstractDocument.replace(int offset, int length, String text, AttributeSet attributes)
Replaces some text in the document.
void
DocumentFilter.FilterBypass.replace(int offset, int length, String string, AttributeSet attrs)
void
DocumentFilter.replace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attr)
void
DefaultEditorKit.write(OutputStream out, Document document, int offset, int len)
void
EditorKit.write(OutputStream out, Document doc, int pos, int len)
void
DefaultEditorKit.write(Writer out, Document document, int offset, int len)
void
EditorKit.write(Writer out, Document doc, int pos, int len)

Uses in package javax.swing.text.rtf

Methods which throw type javax.swing.text.BadLocationException

void
RTFEditorKit.read(InputStream stream, Document doc, int pos)
Reads RTF data from stream into doc at the specified position pos.
void
RTFEditorKit.read(Reader reader, Document doc, int pos)
Reads RTF data from reader into doc at the specified position pos.

Uses in package javax.swing

Methods which throw type javax.swing.text.BadLocationException

int
int
int
String
JPasswordField.getText(int offset, int length)
getText

Uses in package javax.swing.plaf

Methods which throw type javax.swing.text.BadLocationException

int
TextUI.getNextVisualPositionFrom(JTextComponent tc, int pos, Position.Bias bias, int direction, Position.Bias outBias)
Calculates the caret position that is visually next to the given position.
Rectangle
Calculates the geometric extent of the character at the given offset.
Rectangle
Calculates the geometric extent of the character at the given offset.