私は小さな (500kb) スイング アプレットを持っており、JEditorPane を使用して小さな HTML ページの非常に単純なセットまたは制限されたセットを内部に表示します。 . ページは私のマシンから正常に動作します。すべてのユーザーに HTML ページを表示するためのより信頼性の高い方法が必要です。
JEditorPaneの代わりに使用する小さな+無料のクラスがある場合、または信頼性を高めるための簡単な修正がある場合のアイデア(空白ではない)
private JEditorPane m_editorPane = new JTextPane();
m_editorPane.setEditable( false);
m_editorPane.setBackground(new Color(239 ,255, 215));
m_editorPane.setBounds(30,42,520,478 );
m_editorPane.setDoubleBuffered(true);
m_editorPane.setBorder(null);
m_editorPane.registerEditorKitForContentType("text/html", "com.xxxxx.SynchronousHTMLEditorKit");
m_editorPane.setPage(ResourceLoader.getURLforDataFile(param.trim()));