static JButton jImageAndTextButton(S imageID, S text, O action) { JButton btn = jImageAndTextButton_defaultPlacement(imageID, text, action); btn.setVerticalTextPosition(SwingConstants.BOTTOM); btn.setHorizontalTextPosition(SwingConstants.CENTER); ret btn; } // button without action static JButton jImageAndTextButton(S imageID, S text) { ret jImageAndTextButton(imageID, text, null); }
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: | 446 / 473 |
Version history: | 6 change(s) |
Referenced in: | [show references] |