本文整理了Java中javax.swing.JTextPane.revalidate()
方法的一些代码示例,展示了JTextPane.revalidate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextPane.revalidate()
方法的具体详情如下:
包路径:javax.swing.JTextPane
类名称:JTextPane
方法名:revalidate
暂无
代码示例来源:origin: vsch/flexmark-java
public static void setRegExError(String error, JTextPane jTextPane, final Font textFont, final BackgroundColor validTextFieldBackground, final BackgroundColor warningTextFieldBackground) {
HtmlBuilder html = new HtmlBuilder();
html.tag("html").style("margin:2px;vertical-align:middle;").attr(validTextFieldBackground, textFont).tag("body");
html.attr(warningTextFieldBackground).tag("div");
html.append(toHtmlError(error, true));
html.closeTag("div");
html.closeTag("body");
html.closeTag("html");
jTextPane.setVisible(true);
jTextPane.setText(html.toFinalizedString());
jTextPane.revalidate();
jTextPane.getParent().revalidate();
jTextPane.getParent().getParent().revalidate();
}
代码示例来源:origin: protegeproject/protege
public void setLineWrap(boolean wrap) {
editorKit.setLineWrap(wrap);
text.revalidate();
text.repaint();
}
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
public void setLineNumbersVisible(boolean newValue) {
NumberedViewFactory viewFactory = (NumberedViewFactory) editor.getEditorKit().
getViewFactory();
boolean oldValue = viewFactory.isLineNumbersVisible();
if (oldValue != newValue) {
viewFactory.setLineNumbersVisible(newValue);
prefs.putBoolean("lineNumbersVisible", newValue);
firePropertyChange("lineNumbersVisible", oldValue, newValue);
editor.revalidate();
editor.repaint();
}
}
代码示例来源:origin: ontop/ontop
doc.setCharacterAttributes(offset, offset + 1, plainStyle, true);
parent.revalidate();
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-kenai-ui
inbox.revalidate();
inbox.repaint();
} catch (IOException ex) {
代码示例来源:origin: eu.mihosoft.vrl/vrl
newMessageHeight);
messageField.revalidate();
代码示例来源:origin: com.vladsch.flexmark/flexmark-util
public static void setRegExError(String error, JTextPane jTextPane, final Font textFont, final BackgroundColor validTextFieldBackground, final BackgroundColor warningTextFieldBackground) {
HtmlBuilder html = new HtmlBuilder();
html.tag("html").style("margin:2px;vertical-align:middle;").attr(validTextFieldBackground, textFont).tag("body");
html.attr(warningTextFieldBackground).tag("div");
html.append(toHtmlError(error, true));
html.closeTag("div");
html.closeTag("body");
html.closeTag("html");
jTextPane.setVisible(true);
jTextPane.setText(html.toFinalizedString());
jTextPane.revalidate();
jTextPane.getParent().revalidate();
jTextPane.getParent().getParent().revalidate();
}
代码示例来源:origin: eu.mihosoft.vrl/vrl
MAX_HEIGHT_KEY));
messageField.revalidate();
内容来源于网络,如有侵权,请联系作者删除!