/** * Sets a Painter to use to paint the background of this component By default there is already a single painter * installed which draws the normal background for this component according to the current Look and Feel. Calling * <CODE>setBackgroundPainter</CODE> will replace that existing painter. * * @param p the new painter * @see #getBackgroundPainter() */ public void setBackgroundPainter(Painter p) { Painter old = getBackgroundPainter(); backgroundPainter = p; firePropertyChange("backgroundPainter", old, getBackgroundPainter()); repaint(); }
/** * Sets a Painter to use to paint the background of this component By default there is already a single painter * installed which draws the normal background for this component according to the current Look and Feel. Calling * <CODE>setBackgroundPainter</CODE> will replace that existing painter. * * @param p the new painter * @see #getBackgroundPainter() */ @Override public void setBackgroundPainter(Painter p) { Painter old = getBackgroundPainter(); backgroundPainter = p; firePropertyChange("backgroundPainter", old, getBackgroundPainter()); repaint(); }
/** * Sets a Painter to use to paint the background of this component By default there is already a single painter * installed which draws the normal background for this component according to the current Look and Feel. Calling * <CODE>setBackgroundPainter</CODE> will replace that existing painter. * * @param p the new painter * @see #getBackgroundPainter() */ @Override public void setBackgroundPainter(Painter p) { Painter old = getBackgroundPainter(); backgroundPainter = p; firePropertyChange("backgroundPainter", old, getBackgroundPainter()); repaint(); }
/** * Sets a Painter to use to paint the background of this component By default there is already a single painter * installed which draws the normal background for this component according to the current Look and Feel. Calling * <CODE>setBackgroundPainter</CODE> will replace that existing painter. * * @param p the new painter * @see #getBackgroundPainter() */ @Override public void setBackgroundPainter(Painter p) { Painter old = getBackgroundPainter(); backgroundPainter = p; firePropertyChange("backgroundPainter", old, getBackgroundPainter()); repaint(); }
/** * Sets a Painter to use to paint the background of this component By default there is already a single painter * installed which draws the normal background for this component according to the current Look and Feel. Calling * <CODE>setBackgroundPainter</CODE> will replace that existing painter. * * @param p the new painter * @see #getBackgroundPainter() */ @Override public void setBackgroundPainter(Painter p) { Painter old = getBackgroundPainter(); backgroundPainter = p; firePropertyChange("backgroundPainter", old, getBackgroundPainter()); repaint(); }