1. JEditorPane and Memory Usage forums.oracle.com// Create the JEditorPane, setting the content-type and the HTML text jepEditorPane = new JEditorPane("text/html", this.strHTML); jepEditorPane.setEditable(false); jspScrollPane = new JScrollPane(jepEditorPane); // Line with memory issue jfrMainFrame.getContentPane().add(jspScrollPane); jspScrollPane.getViewport().add(jepEditorPane); jfrMainFrame.setSize(intWidth, intHeight); jfrMainFrame.setTitle(strHTML.substring(strHTML.indexOf(" |