wood burning stoves 2.0*
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
Author

JEditorPane Refresh

Vic Hunting
Greenhorn

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

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?
Cheers
Vic
 
Consider Paul's rocket mass heater.
 
subject: JEditorPane Refresh