Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JEditorPane Refresh

 
Vic Hunting
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic