I want to create a JButton with an image in background and a dynamic text.
I create my own derived JButton to implement paintComponent() method.
So my background is ok but when I try to use setText() I can't see my text...
Then I try to implement drawString() method in my button. With this method I can see my text but my background disappear !
Please can you tell me how to fix that and create button with background and text ?