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

19
LINES

< > BotCompany Repo | #1006228 - jSection - make lowered BevelBorder around component

JavaX fragment (include)

1  
import javax.swing.border.*;
2  
3  
static JPanel jSection(Component c) {
4  
  ret jSection("", c);
5  
}
6  
7  
static JPanel jSection(fS title, final Component c) {
8  
  ret swing(func -> JPanel {
9  
    Border border = BorderFactory.createBevelBorder(BevelBorder.LOWERED);
10  
    border = BorderFactory.createTitledBorder(border, title);
11  
    JSection panel = new(c);
12  
    panel.setBorder(border);
13  
    ret panel;
14  
  });
15  
}
16  
17  
static JPanel jSection(S title) {
18  
  ret jSection(title, jpanel());
19  
}

download  show line numbers  debug dex   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1006228
Snippet name: jSection - make lowered BevelBorder around component
Eternal ID of this version: #1006228/7
Text MD5: 51c98f7b1b5378c62a5eaa253ab1fd1d
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-07 21:25:31
Source code size: 483 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 385 / 393
Version history: 6 change(s)
Referenced in: [show references]

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