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

9
LINES

< > BotCompany Repo | #1015181 // withBlackBorder - for Component or BufferedImage

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (8625L/49K).

import javax.swing.border.Border;

static JPanel withBlackBorder(Component c) {
  ret withBorder(BorderFactory.createLineBorder(Color.black), c);
}

static BufferedImage withBlackBorder(int width default 1, BufferedImage img) {
  ret addBorderToImage(Color.black, width, img);
}

Author comment

Began life as a copy of #1006529

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: #1015181
Snippet name: withBlackBorder - for Component or BufferedImage
Eternal ID of this version: #1015181/6
Text MD5: 1aee6ce9a6f6bcf4a6a6bdbc4c410ba0
Transpilation MD5: b8a5659d99fd6bfa77e1accf47743a31
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-30 00:45:33
Source code size: 286 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 367 / 466
Version history: 5 change(s)
Referenced in: [show references]