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

Oracle Community | 807587 | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards 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