1 | static JTextField setTextFieldFontSize(JTextField tf, int size) { |
2 | tf.setFont(tf.getFont().deriveFont((float) size)); |
3 | ret tf; |
4 | } |
5 | |
6 | static JTextField setTextFieldFontSize(int size, JTextField tf) { |
7 | ret setTextFieldFontSize(tf, size); |
8 | } |
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: | #1007147 |
Snippet name: | setTextFieldFontSize |
Eternal ID of this version: | #1007147/3 |
Text MD5: | 3cd26c1e3038f2c46d3c75897f32aaeb |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-16 00:32:31 |
Source code size: | 246 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 476 / 507 |
Version history: | 2 change(s) |
Referenced in: | [show references] |