Making an Image into a clickable Button

I was wondering if there is a way to make an image into a button. I know you can add an image onto a JButton, but I want to make an actual image into its own clickable button.
[182 byte] By [mike200015a] at [2007-11-27 1:24:19]
# 1
Add the image to a JButton and set the button Border to null so it doesn't look like a button.
camickra at 2007-7-12 0:15:19 > top of Java-index,Desktop,Core GUI APIs...
# 2
That doesn't really work. It takes away the borders around the button, but you can still see the button underneath.
mike200015a at 2007-7-12 0:15:19 > top of Java-index,Desktop,Core GUI APIs...
# 3
> That doesn't really work.Works for me.
camickra at 2007-7-12 0:15:19 > top of Java-index,Desktop,Core GUI APIs...
# 4
xyz = new ImageIcon(urclass.class.getResource("any.gif"));
Dharmendra.jspa at 2007-7-12 0:15:19 > top of Java-index,Desktop,Core GUI APIs...