开发者

JButton with text below the icon

In Java Swing I would like to create a JButton which contains an image(icon) and some text. In few words a JButton(text,icon). I would like the text to be displ开发者_StackOverflow社区ayed below the image, and not beside, as in normal JButton layout. Does anyone have an idea on how to achieve this?


Have a look at the method setVerticalTextPosition in AstractButton using the constant SwingConstants.BOTTOM.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜