Libraryless. Click here for Pure Java version (4672L/26K).
static JPanel withBorder(javax.swing.border.Border border, final Component c) { ret swing(func -> JPanel { JPanel p = new JPanel(new BorderLayout); p.setBorder(border); p.add(c); ret p; }); }
Began life as a copy of #1015181
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: | #1015182 |
| Snippet name: | withBorder |
| Eternal ID of this version: | #1015182/3 |
| Text MD5: | 1b9efb696de956969405c96014f36336 |
| Transpilation MD5: | d1af6b88fb9325a6b116ef847789e818 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-11-01 23:27:25 |
| Source code size: | 218 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 900 / 1090 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |