public void run() { try { long st = System.currentTimeMillis(); URL url = null; if (uri.startsWith("http://")) url = new URL(uri); else url = new File(uri).toURL(); System.err.println("loading " + url.toString() + "!"); panel.setDocument(url.toExternalForm()); long el = System.currentTimeMillis() - st; XRLog.general("loadDocument(" + url.toString() + ") in " + el + "ms, render may take longer"); HTMLTest.this.setTitle(BASE_TITLE + "- " + panel.getDocumentTitle() + " " + "(" + url.toString() + ")"); } catch (Exception ex) { Uu.p(ex); } panel.repaint(); } });
public void run() { try { long st = System.currentTimeMillis(); URL url = null; if (uri.startsWith("http://")) url = new URL(uri); else url = new File(uri).toURL(); System.err.println("loading " + url.toString() + "!"); panel.setDocument(url.toExternalForm()); long el = System.currentTimeMillis() - st; XRLog.general("loadDocument(" + url.toString() + ") in " + el + "ms, render may take longer"); HTMLTest.this.setTitle(BASE_TITLE + "- " + panel.getDocumentTitle() + " " + "(" + url.toString() + ")"); } catch (Exception ex) { Uu.p(ex); } panel.repaint(); } });
public void actionPerformed(ActionEvent evt) { panel.getSharedContext().getTextRenderer().setSmoothingThreshold(fontSizeThreshold); panel.repaint(); } }
public void actionPerformed(ActionEvent evt) { panel.getSharedContext().getTextRenderer().setSmoothingThreshold(fontSizeThreshold); panel.repaint(); } }
/** * Description of the Method * * @param evt PARAM */ public void actionPerformed(ActionEvent evt) { panel.getSharedContext().setDebug_draw_font_metrics(!panel.getSharedContext().debugDrawFontMetrics()); panel.repaint(); } }
/** * Description of the Method * * @param evt PARAM */ public void actionPerformed(ActionEvent evt) { panel.getSharedContext().setDebug_draw_boxes(!panel.getSharedContext().debugDrawBoxes()); panel.repaint(); } }
/** * Description of the Method * * @param evt PARAM */ public void actionPerformed(ActionEvent evt) { panel.getSharedContext().setDebug_draw_line_boxes(!panel.getSharedContext().debugDrawLineBoxes()); panel.repaint(); } }
/** * Description of the Method * * @param evt PARAM */ public void actionPerformed(ActionEvent evt) { panel.getSharedContext().setDebug_draw_inline_boxes(!panel.getSharedContext().debugDrawInlineBoxes()); panel.repaint(); } }
/** * Description of the Method * * @param evt PARAM */ public void actionPerformed(ActionEvent evt) { panel.getSharedContext().setDebug_draw_line_boxes(!panel.getSharedContext().debugDrawLineBoxes()); panel.repaint(); } }
/** * Description of the Method * * @param evt PARAM */ public void actionPerformed(ActionEvent evt) { panel.getSharedContext().setDebug_draw_inline_boxes(!panel.getSharedContext().debugDrawInlineBoxes()); panel.repaint(); } }
/** * Description of the Method * * @param evt PARAM */ public void actionPerformed(ActionEvent evt) { panel.getSharedContext().setDebug_draw_boxes(!panel.getSharedContext().debugDrawBoxes()); panel.repaint(); } }
/** * Description of the Method * * @param evt PARAM */ public void actionPerformed(ActionEvent evt) { panel.getSharedContext().setDebug_draw_font_metrics(!panel.getSharedContext().debugDrawFontMetrics()); panel.repaint(); } }