Libraryless. Click here for Pure Java version (9762L/54K).
1 | static <A extends Component> A setAllStandardFontSizesRecursively(A c, float fontSize, IPred<Component> componentFilter default null) {
|
2 | if (componentFilter != null && !componentFilter.get(c)) |
3 | ret c; |
4 | |
5 | if (c cast JComponent) {
|
6 | setFontSize(c, fontSize); |
7 | setTitledBorderFontSize(c, fontSize); |
8 | } |
9 | |
10 | if (c cast JTable) |
11 | setTableFontSizesAndRowHeight(c, fontSize); |
12 | |
13 | if (c cast Container) |
14 | for (Component x : listChildren(c)) |
15 | setAllStandardFontSizesRecursively(x, fontSize, componentFilter); |
16 | |
17 | ret c; |
18 | } |
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: | 432 / 613 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |