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  Refresh 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  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:
subject: JEditorPane Refresh
Similar Threads
Disable selection from the JEditorPane
HELP with ScrollPanes!
repainting problems...
create a html help menu