Transpiled version (5218L) is out of date.
1 | static <A extends Container> A addComponentAtIndex(A c, int idx, Component component) {
|
2 | if (component != null) swing {
|
3 | c.add(component, clamp(idx, 0, c.getComponentCount())); |
4 | revalidate(c); |
5 | } |
6 | ret c; |
7 | } |
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: | 393 / 510 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |