1 | static JPanel jCenteredSectionWithFont(Font font, Component c) { |
2 | ret jCenteredSectionWithFont(font, "", c); |
3 | } |
4 | |
5 | static JPanel jCenteredSectionWithFont(final Font font, fS title, final Component c) { |
6 | ret swing(func -> JPanel { |
7 | JPanel p = jCenteredSection(title, c); |
8 | ((TitledBorder) p.getBorder()).setTitleFont(font); |
9 | ret p; |
10 | }); |
11 | } |
12 | |
13 | static JPanel jCenteredSectionWithFont(Font font, S title) { |
14 | ret jCenteredSectionWithFont(font, title, jpanel()); |
15 | } |
Began life as a copy of #1016951
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: | #1020286 |
Snippet name: | jCenteredSectionWithFont - jSection with centered title |
Eternal ID of this version: | #1020286/1 |
Text MD5: | 9fe79c298ab7d642dc8908f6b363150c |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-12 20:46:22 |
Source code size: | 480 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 303 / 341 |
Referenced in: | [show references] |