1 | static JLabel jAnimation(S imageID) { |
2 | ret jAnimation(imageID, ""); |
3 | } |
4 | |
5 | static JLabel jAnimation(fS imageID, fS text) { |
6 | ret swing(func -> JLabel { |
7 | JLabel label = new SmoothLabel(imageIcon(imageID)); |
8 | label.setText(text); |
9 | label.setVerticalTextPosition(SwingConstants.BOTTOM); |
10 | label.setHorizontalTextPosition(SwingConstants.CENTER); |
11 | ret label; |
12 | }); |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1007786 |
Snippet name: | jAnimation |
Eternal ID of this version: | #1007786/5 |
Text MD5: | 5f134ce34b0b75c3c9280345cf9b7fb6 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-11 15:56:19 |
Source code size: | 382 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 662 / 628 |
Version history: | 4 change(s) |
Referenced in: | [show references] |