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
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at javax.swing.text.BoxView.updateLayoutArray(BoxView.java:196)
at javax.swing.text.BoxView.replace(BoxView.java:168)
at javax.swing.text.View.updateChildren(View.java:1117)
at javax.swing.text.View.changedUpdate(View.java:783)
at javax.swing.text.html.BlockView.changedUpdate(BlockView.java:323)
at javax.swing.plaf.basic.BasicTextUI$RootView.changedUpdate(BasicTextUI
.java:1444)
at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.changedUpdate(BasicT
extUI.java:1680)
at javax.swing.text.AbstractDocument.fireChangedUpdate(AbstractDocument.
java:213)
at javax.swing.text.html.HTMLDocument.fireChangedUpdate(HTMLDocument.jav
a:1314)
at javax.swing.text.html.HTMLDocument$HTMLReader.adjustEndElement(HTMLDo
cument.java:1989)
at javax.swing.text.html.HTMLDocument$HTMLReader.flush(HTMLDocument.java
:2044)
at javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:230)
at javax.swing.JEditorPane.read(JEditorPane.java:504)
at javax.swing.JEditorPane$PageLoader.run(JEditorPane.java:551)


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

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