Libraryless. Click here for Pure Java version (3999L/24K).
static JPanel jCenteredSection_fontSizePlus(int fontPlus, Component c) { ret jCenteredSection_fontSizePlus(fontPlus, "", c); } static JPanel jCenteredSection_fontSizePlus(int fontPlus, S title, Component c) { ret swing(() -> { JPanel p = jCenteredSection(title, c); TitledBorder border = cast p.getBorder(); Font font = border.getTitleFont(); border.setTitleFont(font.deriveFont(font.getSize2D()+fontPlus)); ret p; }); } static JPanel jCenteredSection_fontSizePlus(int fontPlus, S title) { ret jCenteredSection_fontSizePlus(fontPlus, title, jpanel()); }
Began life as a copy of #1020286
download show line numbers debug dex
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1030519 |
Snippet name: | jCenteredSection_fontSizePlus - jSection with centered title |
Eternal ID of this version: | #1030519/4 |
Text MD5: | fe7d522ea4c67619f3b1d89ac46362f7 |
Transpilation MD5: | 509d09d45f4777ec65b511e67aeb0712 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-01-04 04:45:57 |
Source code size: | 601 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 17 / 35 |
Version history: | 3 change(s) |
Referenced in: | [show references] |
Formerly at http://tinybrain.de/1030519 & http://1030519.tinybrain.de