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

7
LINES

< > BotCompany Repo | #1020074 // addBottomMargin - add bottom margin to JComponent (using CompoundBorder)

JavaX fragment (include)

static <A extends JComponent> A addBottomMargin(final int bottom, final A c) {
  ret addMargin(0, 0, bottom, 0, c);
}

static <A extends JComponent> A addBottomMargin(A c, int bottom) {
  ret addBottomMargin(bottom, c);
}

Author comment

Began life as a copy of #1020072

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020074
Snippet name: addBottomMargin - add bottom margin to JComponent (using CompoundBorder)
Eternal ID of this version: #1020074/2
Text MD5: 8ad1cf83d286009c5bd914fa7ad41ba7
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-06 12:50:17
Source code size: 223 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 302 / 318
Version history: 1 change(s)
Referenced in: [show references]