wood burning stoves
The moose likes Swing / AWT / SWT and the fly likes JEditorPane  Refresh Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JEditorPane  Refresh" Watch "JEditorPane  Refresh" New topic

JEditorPane Refresh

Vic Hunting

Joined: Aug 06, 2003
Posts: 3
I am struggling to automatically, err I should say programatically
refresh an html file loaded in a JEditorPane.
Any thoughts?
Vic Hunting

Joined: Aug 06, 2003
Posts: 3
Hey Guys,
Well, in the spiral path of software development.
I was able to solve the refresh problem, well to an extent.
I simply put a timer, which after a specific period of time
sets the urls of the JEditorPane to a blank page and then quickly
to the page I want to display. I had to use this indirect approach
as JEditorPane caches pages and if you ask it to display the same
page again it wont do a thing.
So, the problem is that the pane refreshes but has an unprofessional
flicker. Any ideas on how to eliminate it? A colleague of mine
suggested the use of JTable. Can I display a html link in a JTable?
I agree. Here's the link: http://aspose.com/file-tools
subject: JEditorPane Refresh
It's not a secret anymore!