1 | static <A extends JComponent> A fontSizePlus(final int delta, final A c) { |
2 | if (c != null) swing { |
3 | Font font = c.getFont(); |
4 | c.setFont(font.deriveFont(font.getSize2D()+delta)); |
5 | } |
6 | ret c; |
7 | } |
Began life as a copy of #1007347
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020383 |
Snippet name: | fontSizePlus - increase JComponent's font size |
Eternal ID of this version: | #1020383/4 |
Text MD5: | 21bd59f0b9f72047025a0eb452530e3e |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-18 13:03:33 |
Source code size: | 205 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 373 / 430 |
Version history: | 3 change(s) |
Referenced in: | [show references] |