Has anyone tried to style JButton to look like NetBeans toolbar buttons? That would be showing just a picture and when you hover over it, a 1px rounded correner gray border shows and a background different on top and on the bottom of the button… Can’t seem to be able to style a JButton like that…. any suggestions? Thanks!

Left: normal
Middle: hover
Right: focus
I don’t even need that half-half background really, just can’t even get borders to paint on hover…
How about this implementation? I reference another question and added a small green triangle called netbeans.png where I found from the google. However, there is a small TODO part for you 😉 where to paint the border with a different background once the button get the focus. I hope you like this answer.