1 | please include function myFrames. |
2 | |
3 | // can probably be merged with next variant |
4 | static void disposeWindow(final Window window) {
|
5 | if (window != null) swing {
|
6 | window.dispatchEvent(new WindowEvent(window, WindowEvent.WINDOW_CLOSING)); // call listeners |
7 | myFrames_list.remove(window); |
8 | window.dispose(); |
9 | } |
10 | } |
11 | |
12 | static void disposeWindow(final Component c) {
|
13 | disposeWindow(getWindow(c)); |
14 | } |
15 | |
16 | static void disposeWindow(O o) {
|
17 | if (o != null) disposeWindow(o/Component); |
18 | } |
19 | |
20 | static void disposeWindow() {
|
21 | disposeWindow(heldInstance(Component)); |
22 | } |
Began life as a copy of #1003377
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1003549 |
| Snippet name: | disposeWindow |
| Eternal ID of this version: | #1003549/9 |
| Text MD5: | 89e2bf45c808e4c48062260d9368cf46 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-06-24 00:44:53 |
| Source code size: | 574 bytes / 22 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1580 / 1742 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |