本文整理了Java中javax.swing.JLabel.validate()
方法的一些代码示例,展示了JLabel.validate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLabel.validate()
方法的具体详情如下:
包路径:javax.swing.JLabel
类名称:JLabel
方法名:validate
暂无
代码示例来源:origin: jshiell/checkstyle-idea
/**
* Update the progress text.
*
* @param text the new progress text, or null to clear.
*/
public void setProgressText(@Nullable final String text) {
if (isBlank(text)) {
progressLabel.setText(" ");
} else {
progressLabel.setText(text);
}
progressLabel.validate();
}
代码示例来源:origin: org.protege/protege-editor-owl
private void displayWarningMessage(String message) {
errorLabel.setIcon(warningIcon);
errorLabel.setText("<html>" + message + "</html>");
errorLabel.validate();
}
代码示例来源:origin: org.protege/protege-editor-owl
private void clearMessage() {
errorLabel.setIcon(null);
errorLabel.setText("");
errorLabel.validate();
}
代码示例来源:origin: igniterealtime/Spark
public void setTitleColor(Color color) {
titleLabel.setForeground(color);
titleLabel.validate();
titleLabel.repaint();
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
public void validate()
{
if((delegate_==this)||(delegate_==null))
super.validate();
else
delegate_.validate();
}
代码示例来源:origin: igniterealtime/Spark
public void setTitleFont(Font font) {
titleLabel.setFont(font);
titleLabel.validate();
titleLabel.repaint();
titleLabel.revalidate();
}
代码示例来源:origin: igniterealtime/Spark
public void setTitleBold(boolean bold) {
Font oldFont = titleLabel.getFont();
Font newFont;
if (bold) {
newFont = new Font(oldFont.getFontName(), Font.BOLD,
oldFont.getSize());
} else {
newFont = new Font(oldFont.getFontName(), Font.PLAIN,
oldFont.getSize());
}
titleLabel.setFont(newFont);
titleLabel.validate();
titleLabel.repaint();
titleLabel.revalidate();
}
代码示例来源:origin: MegaMek/mekhq
preview.validate();
代码示例来源:origin: igniterealtime/Spark
private void updateWithGenericInfo() {
String title = SparkManager.getUserManager().getUserNicknameFromJID(jid);
titleLabel.setText(title);
avatarLabel.setIcon(SparkRes.getImageIcon(SparkRes.DEFAULT_AVATAR_64x64_IMAGE));
avatarLabel.invalidate();
avatarLabel.validate();
avatarLabel.repaint();
invalidate();
validate();
repaint();
}
代码示例来源:origin: igniterealtime/Spark
avatarLabel.validate();
avatarLabel.repaint();
代码示例来源:origin: igniterealtime/Spark
setAvatar(avatarIcon);
imageLabel.invalidate();
imageLabel.validate();
imageLabel.repaint();
imageLabel.setBorder(null);
imageLabel.invalidate();
imageLabel.validate();
imageLabel.repaint();
内容来源于网络,如有侵权,请联系作者删除!