This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Urgent : problem with JEditorPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Urgent : problem with JEditorPane" Watch "Urgent : problem with JEditorPane" New topic
Author

Urgent : problem with JEditorPane

vicky bawge
Ranch Hand

Joined: Sep 04, 2001
Posts: 34
when i try to display a html page using JEditorPane the following exception occurs.
Can you please help
java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:82)
at javax.swing.text.DefaultStyledDocument$ElementBuffer.insertElement(DefaultStyledDocument.java:1623)
at javax.swing.text.DefaultStyledDocument$ElementBuffer.insertUpdate(DefaultStyledDocument.java:1361)
at javax.swing.text.DefaultStyledDocument$ElementBuffer.insert(DefaultStyledDocument.java:1231)
at javax.swing.text.DefaultStyledDocument.insert(DefaultStyledDocument.java:194)
at javax.swing.text.html.HTMLDocument.insert(HTMLDocument.java:212)
at javax.swing.text.html.HTMLDocument$HTMLReader.flushBuffer(HTMLDocument.java:3014)
at javax.swing.text.html.HTMLDocument$HTMLReader.flush(HTMLDocument.java:1921)
at javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:240)
at javax.swing.JEditorPane.read(JEditorPane.java:421)
at javax.swing.JEditorPane.read(JEditorPane.java:439)
at javax.swing.JEditorPane$PageLoader.run(JEditorPane.java:468)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Urgent : problem with JEditorPane
 
Similar Threads
How to put an HTML file in a JEditorPane ?
EmptyStackException
Granting Security Policy Permissions
Application loading with intermittent JEditorPane error
problem with JEditorPane