static <A extends JComponent> A fontSizePlus(final int delta, final A c) { if (c != null) swing { Font font = c.getFont(); c.setFont(font.deriveFont(font.getSize2D()+delta)); } ret c; }
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: | 372 / 429 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1021027 - fontSizeTimes - increase JComponent's font size with a factor #1021125 - fontSizePlus_textField - increase embedded JTextField's font size #1024926 - fontSizeMinus - decrease JComponent's font size |