@Override public void mouseEntered(MouseEvent e) { label.setBackground(Color.LIGHT_GRAY); label.setOpaque(true); label.invalidate(); }
@Override public void mouseExited(MouseEvent e) { label.setBackground(Color.WHITE); label.setOpaque(false); label.invalidate(); }
@Override public void mouseExited(MouseEvent e) { jl.setOpaque(false); jl.setBackground(lastColor); jl.invalidate(); jl.repaint(); } });
public void invalidate() { if((delegate_==this)||(delegate_==null)) super.invalidate(); else delegate_.invalidate(); }
JLabel label = btc.getLabel(); pane.setTitleAt(index, label.getText() + titleIndex); label.invalidate(); pane.repaint();
@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(); } }
private void updateChapter(int chapter, int chapterCount) { String s = chapterCount != -1 ? (chapter + 1) + "/" + chapterCount : "-"; chapterLabel.setText(s); chapterLabel.invalidate(); validate(); }
b1.setVisible(false); Title.setVisible(false); Title.invalidate(); SGame sg = new SGame(); window.add(sg);
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(); }
label.setText("Load of SVG image failed"); //NOI18N label.setIcon(null); label.invalidate(); imageHolder.validate(); imageHolder.repaint();
label.setText("Load of SVG image failed"); //NOI18N label.setIcon(null); label.invalidate(); imageHolder.validate(); imageHolder.repaint();
avatarLabel.invalidate(); avatarLabel.validate(); avatarLabel.repaint();
bag.isSerial(false); bagView.infoInputPane.serializeValue.invalidate(); bagView.infoInputPane.setHoley("false"); bagView.infoInputPane.holeyValue.invalidate();
avatarIcon = VCardManager.scale(avatarIcon); setAvatar(avatarIcon); imageLabel.invalidate(); imageLabel.validate(); imageLabel.repaint(); imageLabel.setIcon(null); imageLabel.setBorder(null); imageLabel.invalidate(); imageLabel.validate(); imageLabel.repaint();