circular button

How do I create a circular button? Because it seems like all buttons are rectangular, right? JButton and Button are both rectangles. I know I can use a GIF as the image of the Button, but I want the button itself to be a circle. Also, if that is impossible for the button to be a circle, how do I make the button a square but the image a circle with everyting surrounding the circule in the button the same color as the background. That is, how do I make it invisible except for the circle?

[497 byte] By [mhbfca] at [2007-10-2 16:50:03]
# 1
Button itself is an image, after all ...Use ARGB image using a PNG resource.And don't forget to make your beautiful circular JComponent fire ActionEvent from the mouselistener.
hiwaa at 2007-7-13 18:01:35 > top of Java-index,Desktop,Core GUI APIs...
# 2
Here is an old article that might help: http://java.sun.com/j2se/1.3/docs/guide/awt/demos/lightweight/index.html
camickra at 2007-7-13 18:01:35 > top of Java-index,Desktop,Core GUI APIs...
# 3
> Here is an old article that might help:> > http://java.sun.com/j2se/1.3/docs/guide/awt/demos/ligh> tweight/index.htmlhmmm...cool.
llpindda at 2007-7-13 18:01:35 > top of Java-index,Desktop,Core GUI APIs...