From aafe7130149f8a0faa97bb5fc5416d5b48592f5a Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Wed, 4 Jul 2007 11:15:44 +0000 Subject: [PATCH] BF [ 1747741 ] Help window not working on java 6 http://sourceforge.net/tracker/index.php?func=detail&aid=1747741&group_id=176962&atid=879332 --- client/src/org/compiere/apps/Help.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/src/org/compiere/apps/Help.java b/client/src/org/compiere/apps/Help.java index 635b33d01c..178fd2b9a4 100644 --- a/client/src/org/compiere/apps/Help.java +++ b/client/src/org/compiere/apps/Help.java @@ -19,7 +19,10 @@ package org.compiere.apps; import java.awt.*; import java.awt.event.*; import java.net.*; + import javax.swing.*; +import javax.swing.text.html.HTMLDocument; + import java.util.logging.*; import org.adempiere.plaf.AdempierePLAF; @@ -32,6 +35,8 @@ import org.compiere.util.*; * * @author Jorg Janke * @version $Id: Help.java,v 1.3 2006/07/30 00:51:27 jjanke Exp $ + * + * @author Teo Sarca - BF [ 1747741 ] */ public class Help extends CDialog implements ActionListener @@ -141,6 +146,9 @@ public class Help extends CDialog private void loadInfo(GridWindow mWindow) { WebDoc doc = mWindow.getHelpDoc(true); + HTMLDocument htmlDoc = (HTMLDocument)info.getEditorKit().createDefaultDocument(); + htmlDoc.getDocumentProperties().put("IgnoreCharsetDirective", true); + info.setDocument(htmlDoc); info.setText(doc.toString()); } // loadInfo