Is it possible to put text on top of a image in a button?

Posted by Roman on Stack Overflow See other posts from Stack Overflow or by Roman
Published on 2010-04-26T12:43:55Z Indexed on 2010/04/26 15:33 UTC
Read the original article Hit count: 115

Filed under:
|
|
|

I have .jpg images in my buttons. I also would like to put some text on top of the images. I use the following syntax for that:

JButton btn = new JButton(label,icon);

But I do not see text in the buttons (only image). What am I doing wrong?

© Stack Overflow or respective owner

Related posts about java

Related posts about jbutton