Is this your first time here? SwingWiki is a Java Swing Developer community site with an big archive of Swing-related usenet groups and mailing lists, but also tips, tricks and articles and book reviews written by your colleagues from around the world. If you came here through a search engine and did not find what you were looking for, make sure to check the wiki table of contents.

HTML refresh in JEditorPane

JEditorPane by default does not follow meta refresh links like

<META HTTP-EQUIV="refresh" CONTENT="3; URL=http://www.google.com">

This code should activate the refresh1)

editor.getDocument().putProperty(Document.StreamDescriptionProperty, null);
1) unchecked and undocumented feature, according to http://java.sun.com/j2se/1.3/docs/api/javax/swing/text/html/HTMLDocument.html, this property is the base URL of the document
 

Comments? Corrections? Contact us or Login to edit pages directly (registration is free and takes less than displaying a JLabel)
  workaround/jeditorpane_html_refresh.txt · Last modified: 2005/02/13 11:21
 
Recent changes | RSS changes | Table of contents | News Archive | Terms And Conditions | Register | The Quest For Software++| Ruby Resources

Sedo - Buy and Sell Domain Names and Websites project info: swingwiki.org Statistics for project swingwiki.org etracker� web controlling instead of log file analysis