1 | static JFrame getFrame(fO _o) { |
2 | ret swing(func -> JFrame { |
3 | O o = _o; |
4 | if (o instanceof ButtonGroup) o = first(buttonsInGroup((ButtonGroup) o)); |
5 | if (!(o instanceof Component)) null; |
6 | Component c = (Component) o; |
7 | while (c != null) { |
8 | if (c instanceof JFrame) return (JFrame) c; |
9 | c = c.getParent(); |
10 | } |
11 | null; |
12 | }); |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1001428 |
Snippet name: | getFrame (get frame of Swing component) |
Eternal ID of this version: | #1001428/4 |
Text MD5: | 4503f9bd070867a935cce73c925767c7 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-07-24 17:52:05 |
Source code size: | 361 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 837 / 1481 |
Version history: | 3 change(s) |
Referenced in: | [show references] |