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)

static JPanel jSectionWithFont(Font font, Component c) {
  ret jSectionWithFont(font, "", c);
}

static JPanel jSectionWithFont(final Font font, fS title, final Component c) {
  ret swing(func -> JPanel {
    JPanel p = jSection(title, c);
    ((TitledBorder) p.getBorder()).setTitleFont(font);
    ret p;
  });
}

static JPanel jSectionWithFont(Font font, S title) {
  ret jSectionWithFont(font, title, jpanel());
}

Author comment

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: #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: 18 / 23
Referenced in: [show references]

Formerly at http://tinybrain.de/1030186 & http://1030186.tinybrain.de