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

8
LINES

< > BotCompany Repo | #1003308 // centerAndSouth (make BorderLayout)

JavaX fragment (include)

static JPanel centerAndSouth(final Component c, final Component s) {
  ret swing(func -> JPanel {
    JPanel panel = new JPanel(new BorderLayout);
    panel.add(BorderLayout.CENTER, wrap(c));
    if (s != null) panel.add(BorderLayout.SOUTH, wrap(s));
    ret panel;
  });
}

Author comment

Began life as a copy of #1001774

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: #1003308
Snippet name: centerAndSouth (make BorderLayout)
Eternal ID of this version: #1003308/3
Text MD5: 3d7f33787a3aba229f8fb28f730dec4b
Author: stefan
Category: javax / swing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-11 22:57:20
Source code size: 280 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 649 / 1028
Version history: 2 change(s)
Referenced in: [show references]