1 | static JButton jImageAndTextButton(S imageID, S text, O action) { |
2 | JButton btn = jImageAndTextButton_defaultPlacement(imageID, text, action); |
3 | btn.setVerticalTextPosition(SwingConstants.BOTTOM); |
4 | btn.setHorizontalTextPosition(SwingConstants.CENTER); |
5 | ret btn; |
6 | } |
7 | |
8 | // button without action |
9 | static JButton jImageAndTextButton(S imageID, S text) { |
10 | ret jImageAndTextButton(imageID, text, null); |
11 | } |
Began life as a copy of #1006831
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010279 |
Snippet name: | jImageAndTextButton - text below image |
Eternal ID of this version: | #1010279/7 |
Text MD5: | e7b875d3211a203ee6907c0912655e35 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-10 17:04:21 |
Source code size: | 407 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 480 / 509 |
Version history: | 6 change(s) |
Referenced in: | [show references] |