static JLabel addTextToLabel(JLabel label, S text) { if (nempty(text)) { label.setText(text); label.setVerticalTextPosition(SwingConstants.BOTTOM); label.setHorizontalTextPosition(SwingConstants.CENTER); } ret label; }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006264 |
| Snippet name: | addTextToLabel |
| Eternal ID of this version: | #1006264/1 |
| Text MD5: | 3a70fb20d46e73fcb63d2eafec727c0a |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-12-26 02:35:52 |
| Source code size: | 243 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 723 / 743 |
| Referenced in: | [show references] |