List of usage examples for javax.swing.text.html HTMLDocument insertBeforeEnd
public void insertBeforeEnd(Element elem, String htmlText) throws BadLocationException, IOException
From source file:org.languagetool.gui.ResultAreaHelper.java
private void appendMain(String html) { HTMLDocument d = (HTMLDocument) statusPane.getDocument(); Element e = d.getElement(MAIN); try {/*ww w. j a v a 2 s . c o m*/ d.insertBeforeEnd(e, html); } catch (BadLocationException ex) { Tools.showError(ex); } catch (IOException ex) { Tools.showError(ex); } }