I want to change the Java Swing JButton's background color.
The original button looks like this:
After I change background color of this button, it looks like this:
The orginal one has the "button" look and feeling. However, the yellow one just looks like a yellow plain background with a some text on top.
Question: Is there any easy way that I change the this specific Jbutton's background color but keep the look&feel?
P.S. I know I can make an image and attach to the button. However, the button size will not be always the same so the image may not be a good idea. Is there any other way I can just simply add some codes such as add some border, margin etc so that it has more button-feel?
Update:
I want the button look like a button after I change the background color. It does not matter if I need to add gradient background or do something else. I am looking for a easiest way to do it.