This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Application loading with intermittent JEditorPane error  RSS feed

Rachel Swailes
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

In my application I have a tabbed pane that makes up the main portion of the GUI. And all was going well until I started work on the third tab.

This tab has two JEditorPanes that are set up to handle hyperlink events.

But the problem I'm getting is that intermittendly I am now getting an error when I start my program up. It didn't happen before the third tab got done and it doesn't occur all the time. I can't figure out a pattern for the error either.

This is the error I get...

SatStarFrame SatStarFrame() java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at javax.swing.text.BoxView.updateLayoutArray(
at javax.swing.text.BoxView.replace(
at javax.swing.text.View.updateChildren(
at javax.swing.text.View.changedUpdate(
at javax.swing.text.html.BlockView.changedUpdate(
at javax.swing.plaf.basic.BasicTextUI$RootView.changedUpdate(BasicTextUI
at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.changedUpdate(BasicT
at javax.swing.text.AbstractDocument.fireChangedUpdate(AbstractDocument.
at javax.swing.text.html.HTMLDocument.fireChangedUpdate(HTMLDocument.jav
at javax.swing.text.html.HTMLDocument$HTMLReader.adjustEndElement(HTMLDo
at javax.swing.text.html.HTMLDocument$HTMLReader.flush(
at javax.swing.JEditorPane$

I've looked on the net for similar problems but with no success. Does anyone have any suggestions?

Many kind regards,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!