What steps will reproduce the problem?
1. Create a new Instance of JSyntaxPane for XHTML.
2. Add all the text found in the web page http://www.PsiqueWare.com/main
3. The UI will hang
What is the expected output? What do you see instead?
I mean I was expecting to see my text in the pane, that's fine if it takes
a while to process the colors, but the pane is expected to be usefull in
the meantime. I can resize my window but the pane component is just hanged
and wont resize.
Please provide any additional information below.
In another application I had a similar problem when loading huge chunks of
html. Mostly becuase html parsing is difficult and slow. What I did is to
use a different thread for the parsing that way it would halt the whole
page, does that makes sense? I hope I can help somehow.
Here is a thread dump
ActualizadorHtmlEditorPlantilla@3695 daemon, prio=5, in group 'main',
status: 'waiting for monitor entry'
java.lang.Thread.State: BLOCKED
waiting for AWT-EventQueue-0@372
at java.awt.Container.getComponent(Container.java:279)
at javax.swing.JViewport.getView(JViewport.java:958)
at javax.swing.ViewportLayout.layoutContainer(ViewportLayout.java:108)
at java.awt.Container.layout(Container.java:1432)
at java.awt.Container.doLayout(Container.java:1421)
at
jsyntaxpane.components.LineNumbersRuler.updateSize(LineNumbersRuler.java:106)
at
jsyntaxpane.components.LineNumbersRuler.insertUpdate(LineNumbersRuler.java:195)
at
javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:185)
at jsyntaxpane.SyntaxDocument.fireInsertUpdate(SyntaxDocument.java:92)
at
javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:734)
at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:693)
at javax.swing.text.PlainDocument.insertString(PlainDocument.java:114)
at javax.swing.text.DefaultEditorKit.read(DefaultEditorKit.java:254)
at javax.swing.JEditorPane.setText(JEditorPane.java:1459)
at
com.psiqueware.lila.estructura.interfaz.plantillas.JEditorPlantilla.actualizaEdi
torHtml(JEditorPlantilla.java:254)
at
com.psiqueware.lila.estructura.interfaz.plantillas.JEditorPlantilla.actualizarLi
sta(JEditorPlantilla.java:207)
at
com.psiqueware.lila.estructura.interfaz.plantillas.JEditorPlantilla.access$100(J
EditorPlantilla.java:80)
at
com.psiqueware.lila.estructura.interfaz.plantillas.JEditorPlantilla$HiloActualiz
acion$1.run(JEditorPlantilla.java:296)
at java.lang.Thread.run(Thread.java:619)
Thank you and let me know if I can hel with something else.
Original issue reported on code.google.com by psiqu...@gmail.com on 10 Apr 2010 at 3:52
Original issue reported on code.google.com by
psiqu...@gmail.com
on 10 Apr 2010 at 3:52