posted 23 years ago
A quick and relatively easy solution might be to create a round image with the look you want for the button then create a JButton and an ImageIcon ( using the previously created image ).
Then
button.setIcon(imageIcon); //set the button to use the image
button.setBorderPainted(false); //so you don't see the edges of the button
Of course the drawback is that the background of image must match the background of the component you add the button to.
I suppose there are other ways such as extending the JButton class but off the top of my head, I'm afraid I couldn't be much help in that approach.
Hope this was some help.