The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

This topic is READ ONLY
import-bot (20211) [Avatar] Offline
#1
[Originally posted by glsrikanth]

Hi EveryOne,
I have an applet when i run it opens a new Frame window.
Iam displaying the html files in the Frame in the form
of Tree sturcture.
when i click one of the nodes it displays various Html
files in that node in the form of Table.
If i click the Html file it opens another Frame with
the Menu Option in it.
the above Frame is a JtextArea which is extending a JTextPane
for Highligting the tags of Html and other stuff.
when i Edit the Text in the Frame for e.g. <html> it is
displayoing perfectly well with the Highlighted color.
But when i do Undo or Redo it is showing the Below Error.
===========================================================
Exception occurred during event dispatching:
javax.swing.text.StateInvariantError: LabelView: Stale view:
javax.swing.text.BadLocationException: Invalid location
at javax.swing.text.LabelView.loadText(Compiled Code)
at javax.swing.text.LabelView$LabelFragment.getBreakWeight(Compiled Code)
at javax.swing.text.LabelView.getBreakWeight(LabelView.java:430)
at javax.swing.text.ParagraphView.layoutRow(Compiled Code)
at javax.swing.text.ParagraphView.rebuildRows(Compiled Code)
at javax.swing.text.ParagraphView.layout(ParagraphView.java:216)
at javax.swing.text.ParagraphView.removeUpdate(ParagraphView.java:866)
at javax.swing.text.BoxView.removeUpdate(Compiled Code)
atjavax.swing.plaf.basic.BasicTextUI$RootView.removeUpdate(BasicTextUI.java:1166)

atjavax.swing.plaf.basic.BasicTextUI$UpdateHandler.removeUpdate(BasicTextUI.java:1383)

at javax.swing.text.AbstractDocument.fireRemoveUpdate(Compiled Code)
atjavax.swing.text.AbstractDocument$DefaultDocumentEvent.undo(AbstractDocument.java:2383)

at javax.swing.undo.UndoManager.undoTo(Compiled Code)
at javax.swing.undo.UndoManager.undo(UndoManager.java:276)
at com.fujitsu.jasmine.weblink.TEUndoManager.undo(TEUndoManager.java:43)
atcom.fujitsu.jasmine.weblink.TemplateEditorUI$UndoAction.actionPerformed(TemplateEditorUI.java:497)

at javax.swing.AbstractButton.fireActionPerformed(Compiled Code)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Compiled Code)
at javax.swing.DefaultButtonModel.fireActionPerformed(Compiled Code)
at javax.swing.DefaultButtonModel.setPressed(Compiled Code)
at javax.swing.AbstractButton.doClick(Compiled Code)
at javax.swing.AbstractButton.doClick(Compiled Code)
at javax.swing.JMenuItem$1.actionPerformed(Compiled Code)
at javax.swing.KeyboardManager.fireBinding(Compiled Code)
at javax.swing.KeyboardManager.fireKeyboardAction(Compiled Code)
at javax.swing.JComponent.processKeyBindingsForAllComponents(Compiled Code)
at javax.swing.JComponent.processKeyBindings(Compiled Code)
at javax.swing.JComponent.processKeyEvent(Compiled Code)
at com.fujitsu.jasmine.weblink.TETextArea.processKeyEvent(Compiled Code)
at java.awt.Component.processEvent(Compiled Code)
at java.awt.Container.processEvent(Compiled Code)
at java.awt.Component.dispatchEventImpl(Compiled Code)
at java.awt.Container.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.LightweightDispatcher.processKeyEvent(Compiled Code)
at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
at java.awt.Container.dispatchEventImpl(Compiled Code)
at java.awt.Window.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.EventQueue.dispatchEvent(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)
============================================================
Thank's in Advance
Regard's
Srikanth