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 JEditorPane repaint issue 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 "JEditorPane repaint issue" Watch "JEditorPane repaint issue" New topic
Author

JEditorPane repaint issue

Tejas Anand Gokhale
Greenhorn

Joined: Sep 21, 2010
Posts: 3
Hello,
I am doing JEditorPane pane = new JEditorPane("text/html",sHtml); where sHtml is a dynamically generated string.

sHtml has <img> tags in it which have URLs where the images have to be picked from.

I then do pane.repaint();Thread.sleep(300); several times.

Then I get an image out of pane and write it to a file.

Problem: The images within the HTML are displayed only some of the times. Whether an image will be displayed or not is not regular. Sometimes the images are sometimes not. At other times only some of them are displayed. What exactly can be the issue? And how to fix it?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JEditorPane repaint issue
 
Similar Threads
Convert html into an image
Fitting HTML page within JEditorPane
Images in User Help file
wanting a mouseListener
GUI thoughts