Libraryless. Click here for Pure Java version (9944L/55K).
1 | static AutoCloseable tempAddComponentInFront(Container a, Component b) {
|
2 | if (a == null || b == null) null; |
3 | swing {
|
4 | if (b.getParent() == a) null; |
5 | addComponentInFront(a, b); |
6 | ret -> swing {
|
7 | if (b.getParent() == a) |
8 | removeFromParent(b); |
9 | }; |
10 | } |
11 | } |
Began life as a copy of #1017722
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1036497 |
| Snippet name: | tempAddComponentInFront - temporarily add component to container |
| Eternal ID of this version: | #1036497/1 |
| Text MD5: | 58c5fb8635243989d2fc181a6367c754 |
| Transpilation MD5: | 05a9e2ba64e665f44be7ef1e9479357a |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-12-30 15:42:35 |
| Source code size: | 284 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 497 / 604 |
| Referenced in: | [show references] |