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

8
LINES

< > BotCompany Repo | #1015182 // withBorder

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4672L/26K).

1  
static JPanel withBorder(javax.swing.border.Border border, final Component c) {
2  
  ret swing(func -> JPanel {
3  
    JPanel p = new JPanel(new BorderLayout);
4  
    p.setBorder(border);
5  
    p.add(c);
6  
    ret p;
7  
  });
8  
}

Author comment

Began life as a copy of #1015181

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015182
Snippet name: withBorder
Eternal ID of this version: #1015182/3
Text MD5: 1b9efb696de956969405c96014f36336
Transpilation MD5: d1af6b88fb9325a6b116ef847789e818
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-11-01 23:27:25
Source code size: 218 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 361 / 454
Version history: 2 change(s)
Referenced in: [show references]