Custome shape JButton

Hi,I'm developing an application, I want to create acustom shape JButton. Is this possible and if yes, thenhow to create it? Help me.Thanx
[174 byte] By [Jchefa] at [2007-10-3 4:50:53]
# 1

Implement your own ButtonUI is the best way - extending BasicButtonUI is usually a good start; take a look at the source for it and see what it does. Then you can make it look like what you want, although you can't change the fact that components are always defined by a rectangular bounding box - but you don't have to paint the whole rectangle (eg buttons in many L&Fs have rounded edges).

itchyscratchya at 2007-7-14 22:55:32 > top of Java-index,Desktop,Core GUI APIs...
# 2
[url http://java.sun.com/developer/TechTips/txtarchive/]Creating Round Swing Buttons[/url]
camickra at 2007-7-14 22:55:32 > top of Java-index,Desktop,Core GUI APIs...