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

8
LINES

< > BotCompany Repo | #1015739 // applyDefaultMargin

JavaX fragment (include)

please include function withMargin.

static <A extends JComponent> A applyDefaultMargin(final A c) {
  if (c != null) swing {
    c.setBorder(BorderFactory.createEmptyBorder(withMargin_defaultWidth, withMargin_defaultWidth, withMargin_defaultWidth, withMargin_defaultWidth));
  }
  ret c;
}

Author comment

Began life as a copy of #1004714

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: #1015739
Snippet name: applyDefaultMargin
Eternal ID of this version: #1015739/1
Text MD5: 1a1dd7934227445f7250c77266296108
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-26 20:12:54
Source code size: 297 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 368 / 408
Referenced in: [show references]