1
I read the Java documentation for the Swing look and feel code , but I could not find much on how to change the default appearance JButtons.
I want to have rounded/curved cornersfor JButtonsin Swing.
Is there any way to achieve this? What functions and values should be used?
I used the expression below:
generateButton.setBorder(new RoundedBorder(20));
The RoundedBorder code I found in the Rounded Swing JButton question using Java :
I get a black rounded border around the original button. The MY button has an orange background. But it does not remove the orange area around rounded corners. Also I do not want a black border.
How can I do it?