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

10
LINES

< > BotCompany Repo | #1004959 // withBottomMargin

JavaX fragment (include)

static int withBottomMargin_defaultWidth = 6;

static JPanel withBottomMargin(int w default withBottomMargin_defaultWidth, Component etc c) {
  ret swing(func -> JPanel {
    JPanel p = new JPanel(new BorderLayout);
    p.setBorder(BorderFactory.createEmptyBorder(0, 0, w, 0));
    p.add(c);
    ret p;
  });
}

Author comment

Began life as a copy of #1004714

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004959
Snippet name: withBottomMargin
Eternal ID of this version: #1004959/6
Text MD5: bc87bda7eeea6364c82af99400c912f9
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-12-11 15:55:59
Source code size: 319 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 713 / 721
Version history: 5 change(s)
Referenced in: [show references]