Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1030186 // jSectionWithFont - jSection with title

JavaX fragment (include)

1  
static JPanel jSectionWithFont(Font font, Component c) {
2  
  ret jSectionWithFont(font, "", c);
3  
}
4  
5  
static JPanel jSectionWithFont(final Font font, fS title, final Component c) {
6  
  ret swing(func -> JPanel {
7  
    JPanel p = jSection(title, c);
8  
    ((TitledBorder) p.getBorder()).setTitleFont(font);
9  
    ret p;
10  
  });
11  
}
12  
13  
static JPanel jSectionWithFont(Font font, S title) {
14  
  ret jSectionWithFont(font, title, jpanel());
15  
}

Author comment

Began life as a copy of #1020286

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030186
Snippet name: jSectionWithFont - jSection with title
Eternal ID of this version: #1030186/1
Text MD5: 99831480dddeadd76b4b263016186385
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-12 15:20:54
Source code size: 432 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 193 / 226
Referenced in: [show references]