static JLabel addTextToLabelToTheRight(JLabel label, S text) { if (nempty(text)) { label.setText(text); label.setVerticalTextPosition(SwingConstants.CENTER); label.setHorizontalTextPosition(SwingConstants.RIGHT); } ret label; }
Began life as a copy of #1006264
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: | #1006266 |
Snippet name: | addTextToLabelToTheRight |
Eternal ID of this version: | #1006266/1 |
Text MD5: | 4962f74d9607eb6563f459d3ce1310ed |
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 13:28:42 |
Source code size: | 252 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 569 / 576 |
Referenced in: | [show references] |