Libraryless. Click here for Pure Java version (9239L/51K).
1 | // assumes frame is supposed to be visible right now |
2 | svoid waitForFrameClose(JComponent c) { |
3 | JFrame f = getFrame(c); |
4 | if (f == null) ret; |
5 | |
6 | new Flag flag; |
7 | new CloseablesHolder closer; |
8 | |
9 | swing { |
10 | if (!isShowing(f)) |
11 | flag.raise(); |
12 | else |
13 | closer.add(tempOnFrameClose(f, flag)); |
14 | } |
15 | |
16 | temp closer; |
17 | flag.waitUntilUp(); |
18 | } |
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035437 |
Snippet name: | waitForFrameClose |
Eternal ID of this version: | #1035437/9 |
Text MD5: | 8e9695404f268bf9259e9e88623d614c |
Transpilation MD5: | 1ebd26dab5affba8493abaf4d02d4e9b |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-05-08 23:18:26 |
Source code size: | 364 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 192 / 260 |
Version history: | 8 change(s) |
Referenced in: | [show references] |