static JLabel centeredHtmlLabel(S html) { html = [[ <html> <head></head> <body> <div style="text-align: center;">$$</div></body> </html> ]].replace("$$", html).trim(); ret new JLabel(html, JLabel.CENTER); }
Began life as a copy of #1000923
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003440 |
Snippet name: | centeredHtmlLabel |
Eternal ID of this version: | #1003440/1 |
Text MD5: | 0091e751711627fa8a07a91eb754df19 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-07-03 16:22:21 |
Source code size: | 221 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 587 / 595 |
Referenced in: | [show references] |