Naveen Kumar wrote:Hi All,
Is it possible to change the shape of a JButton/Button to be Round?
Could you please send me sample Code.
Regards
Naveen
Try this
OvalButton class I wrote.
It provides methods for setting button colours, borders, border thickness, and also the shape of the button: oval, circle, capsule.
Additionally, you can use image as the background that will only show within the shape's borders - simply override
getBackgroundImage() method.
You can see some examples
here.