Transpiled version (5218L) is out of date.
static <A extends Container> A addComponentAtIndex(A c, int idx, Component component) { if (component != null) swing { c.add(component, clamp(idx, 0, c.getComponentCount())); revalidate(c); } ret c; }
Began life as a copy of #1016349
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034806 |
| Snippet name: | addComponentAtIndex - add Swing component to container & revalidate - returns container |
| Eternal ID of this version: | #1034806/4 |
| Text MD5: | 9c4a97b78d7ba55706b90caab26de3c6 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-11-26 19:02:18 |
| Source code size: | 220 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 387 / 503 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |