1 | static <A extends JComponent> A setFont(final Font font, final A a) { |
2 | if (a != null) swing { a.setFont(font); } |
3 | ret a; |
4 | } |
5 | |
6 | static <A extends JComponent> A setFont(A a, Font font) { |
7 | ret setFont(font, a); |
8 | } |
9 | |
10 | static <A extends JComponent> A setFont(final S fontID, float fontSize, final A a) { |
11 | ret setFont(loadFont_cached(fontID, fontSize), a); |
12 | } |
Began life as a copy of #1007197
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: | #1007382 |
Snippet name: | setFont |
Eternal ID of this version: | #1007382/6 |
Text MD5: | 45f7356f756f9d0a4a9c62dfab793f16 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-15 22:59:37 |
Source code size: | 361 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 653 / 646 |
Version history: | 5 change(s) |
Referenced in: | [show references] |