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

8
LINES

< > BotCompany Repo | #1015739 // applyDefaultMargin

JavaX fragment (include)

1  
please include function withMargin.
2  
3  
static <A extends JComponent> A applyDefaultMargin(final A c) {
4  
  if (c != null) swing {
5  
    c.setBorder(BorderFactory.createEmptyBorder(withMargin_defaultWidth, withMargin_defaultWidth, withMargin_defaultWidth, withMargin_defaultWidth));
6  
  }
7  
  ret c;
8  
}

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: 375 / 420
Referenced in: [show references]