Libraryless. Click here for Pure Java version (9762L/54K).
static <A extends Component> A setAllStandardFontSizesRecursively(A c, float fontSize, IPred<Component> componentFilter default null) { if (componentFilter != null && !componentFilter.get(c)) ret c; if (c cast JComponent) { setFontSize(c, fontSize); setTitledBorderFontSize(c, fontSize); } if (c cast JTable) setTableFontSizesAndRowHeight(c, fontSize); if (c cast Container) for (Component x : listChildren(c)) setAllStandardFontSizesRecursively(x, fontSize, componentFilter); ret c; }
download show line numbers debug dex old transpilations
Travelled to 5 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030783 |
| Snippet name: | setAllStandardFontSizesRecursively |
| Eternal ID of this version: | #1030783/8 |
| Text MD5: | 7ca93eece60fc077f29c397fa43bf7fb |
| Transpilation MD5: | 348fed72f5ba7bd694c0de544736ee3d |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-11-27 01:57:15 |
| Source code size: | 556 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 430 / 611 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |