|
|
|
|
@ -51,7 +51,7 @@ public SIPCommButton( Image bgImage,
|
|
|
|
|
// Explicitly remove all borders that may be set from the current
|
|
|
|
|
// look and feel.
|
|
|
|
|
this.setBorder(null);
|
|
|
|
|
this.setOpaque(false);
|
|
|
|
|
this.setContentAreaFilled(false);
|
|
|
|
|
|
|
|
|
|
this.bgImage = bgImage;
|
|
|
|
|
this.pressedImage = pressedImage;
|
|
|
|
|
@ -87,6 +87,18 @@ public SIPCommButton(Image bgImage)
|
|
|
|
|
this(bgImage, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Resets the background image for this button.
|
|
|
|
|
*
|
|
|
|
|
* @param bgImage the new image to set.
|
|
|
|
|
*/
|
|
|
|
|
public void setImage(Image bgImage)
|
|
|
|
|
{
|
|
|
|
|
this.bgImage = bgImage;
|
|
|
|
|
|
|
|
|
|
this.repaint();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Overrides the <code>paintComponent</code> method of <tt>JButton</tt> to
|
|
|
|
|
* paint the button background and icon, and all additional effects of this
|
|
|
|
|
|