/** * 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(); }
private void displayWarningMessage(String message) { errorLabel.setIcon(warningIcon); errorLabel.setText("<html>" + message + "</html>"); errorLabel.validate(); }
private void clearMessage() { errorLabel.setIcon(null); errorLabel.setText(""); errorLabel.validate(); }
public void setTitleColor(Color color) { titleLabel.setForeground(color); titleLabel.validate(); titleLabel.repaint(); }
public void validate() { if((delegate_==this)||(delegate_==null)) super.validate(); else delegate_.validate(); }
public void setTitleFont(Font font) { titleLabel.setFont(font); titleLabel.validate(); titleLabel.repaint(); titleLabel.revalidate(); }
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(); }
preview.validate();
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(); }
avatarLabel.validate(); avatarLabel.repaint();