javax.swing.text.StateInvariantError: GlyphView: Stale view: javax.swing.text.BadLocationException: Length must be positive

Oracle Community | 807587 | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Syntax highlighter jams!

    Oracle Community | 1 decade ago | 807587
    javax.swing.text.StateInvariantError: GlyphView: Stale view: javax.swing.text.BadLocationException: Length must be positive

    Root Cause Analysis

    1. javax.swing.text.StateInvariantError

      GlyphView: Stale view: javax.swing.text.BadLocationException: Length must be positive

      at javax.swing.text.GlyphView.getText()
    2. Java RT
      FlowView$LogicalView.getPreferredSpan
      1. javax.swing.text.GlyphView.getText(Unknown Source)
      2. javax.swing.text.GlyphPainter1.getSpan(Unknown Source)
      3. javax.swing.text.GlyphView.getPreferredSpan(Unknown Source)
      4. javax.swing.text.FlowView$LogicalView.getPreferredSpan(Unknown Source)
      4 frames