本文整理了Java中javax.swing.JLabel.invalidate()
方法的一些代码示例,展示了JLabel.invalidate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLabel.invalidate()
方法的具体详情如下:
包路径:javax.swing.JLabel
类名称:JLabel
方法名:invalidate
暂无
代码示例来源:origin: MegaMek/mekhq
@Override
public void mouseEntered(MouseEvent e) {
label.setBackground(Color.LIGHT_GRAY);
label.setOpaque(true);
label.invalidate();
}
代码示例来源:origin: MegaMek/mekhq
@Override
public void mouseExited(MouseEvent e) {
label.setBackground(Color.WHITE);
label.setOpaque(false);
label.invalidate();
}
代码示例来源:origin: net.sf.ingenias/editor
@Override
public void mouseExited(MouseEvent e) {
jl.setOpaque(false);
jl.setBackground(lastColor);
jl.invalidate();
jl.repaint();
}
});
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
public void invalidate()
{
if((delegate_==this)||(delegate_==null))
super.invalidate();
else
delegate_.invalidate();
}
代码示例来源:origin: stackoverflow.com
JLabel label = btc.getLabel();
pane.setTitleAt(index, label.getText() + titleIndex);
label.invalidate();
pane.repaint();
代码示例来源:origin: igniterealtime/Spark
@Override
public void stateChanged(ChangeEvent e) {
_preview.setBackground(new Color(_sliderarray[0].getValue(), _sliderarray[1].getValue(), _sliderarray[2]
.getValue(), _sliderarray[3].getValue()));
_preview.setForeground(new Color(_sliderarray[0].getValue(), _sliderarray[1].getValue(), _sliderarray[2]
.getValue(), _sliderarray[3].getValue()));
_preview.invalidate();
_preview.repaint();
_preview.revalidate();
Container c = _preview.getParent();
if (c instanceof JPanel) {
c.repaint();
c.revalidate();
}
}
代码示例来源:origin: uk.co.caprica/vlcj
private void updateChapter(int chapter, int chapterCount) {
String s = chapterCount != -1 ? (chapter + 1) + "/" + chapterCount : "-";
chapterLabel.setText(s);
chapterLabel.invalidate();
validate();
}
代码示例来源:origin: stackoverflow.com
b1.setVisible(false);
Title.setVisible(false);
Title.invalidate();
SGame sg = new SGame();
window.add(sg);
代码示例来源: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: org.netbeans.api/org-netbeans-modules-mobility-svgcore
label.setText("Load of SVG image failed"); //NOI18N
label.setIcon(null);
label.invalidate();
imageHolder.validate();
imageHolder.repaint();
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-mobility-svgcore
label.setText("Load of SVG image failed"); //NOI18N
label.setIcon(null);
label.invalidate();
imageHolder.validate();
imageHolder.repaint();
代码示例来源:origin: igniterealtime/Spark
avatarLabel.invalidate();
avatarLabel.validate();
avatarLabel.repaint();
代码示例来源:origin: LibraryOfCongress/bagger
bag.isSerial(false);
bagView.infoInputPane.serializeValue.invalidate();
bagView.infoInputPane.setHoley("false");
bagView.infoInputPane.holeyValue.invalidate();
代码示例来源:origin: igniterealtime/Spark
avatarIcon = VCardManager.scale(avatarIcon);
setAvatar(avatarIcon);
imageLabel.invalidate();
imageLabel.validate();
imageLabel.repaint();
imageLabel.setIcon(null);
imageLabel.setBorder(null);
imageLabel.invalidate();
imageLabel.validate();
imageLabel.repaint();
内容来源于网络,如有侵权,请联系作者删除!