Text over a DrawableButton


I would like to set some text over a DrawableButton. I've tried using setButtonText(), but nothing happens regarding the text (the button is all good, visible and clickable). On the other hand, using a label doesn't allow the user to click on the button. So, which way should I go, being that I would like the text changed according to the clicking?

I've just fiddled a bit with paintOverChildren, using g.drawFittedText, and it appears it works, the buttons click and everything.

1 Like