Libraryless. Click here for Pure Java version (8625L/49K).
1 | import javax.swing.border.Border; |
2 | |
3 | static JPanel withBlackBorder(Component c) { |
4 | ret withBorder(BorderFactory.createLineBorder(Color.black), c); |
5 | } |
6 | |
7 | static BufferedImage withBlackBorder(int width default 1, BufferedImage img) { |
8 | ret addBorderToImage(Color.black, width, img); |
9 | } |
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: | 368 / 469 |
Version history: | 5 change(s) |
Referenced in: | [show references] |