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

8
LINES

< > BotCompany Repo | #1003640 // centerAndNorth (make BorderLayout)

JavaX fragment (include)

1  
static JPanel centerAndNorth(final Component c, final Component n) {
2  
  ret swing(func -> JPanel {
3  
    JPanel panel = new JPanel(new BorderLayout);
4  
    panel.add(BorderLayout.CENTER, wrap(c));
5  
    panel.add(BorderLayout.NORTH, wrap(n));
6  
    ret panel;
7  
  });
8  
}

Author comment

Began life as a copy of #1003546

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003640
Snippet name: centerAndNorth (make BorderLayout)
Eternal ID of this version: #1003640/4
Text MD5: 86b16834e0531c0499d3d3c7a472a62f
Author: stefan
Category: javax / swing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-23 23:47:43
Source code size: 265 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 638 / 680
Version history: 3 change(s)
Referenced in: [show references]