static Frame getAWTFrame(fO _o) { ret swing(func -> Frame { O o = _o; /* ifdef HaveProcessing if (o instanceof PApplet) o = ((PApplet) o).getSurface(); endifdef */ if (o instanceof ButtonGroup) o = first(buttonsInGroup((ButtonGroup) o)); if (!(o instanceof Component)) null; Component c = (Component) o; while (c != null) { if (c instanceof Frame) return (Frame) c; c = c.getParent(); } null; }); }
Began life as a copy of #1001428
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1014284 |
| Snippet name: | getAWTFrame (get Frame of Swing component) |
| Eternal ID of this version: | #1014284/3 |
| Text MD5: | 17c5c6efae1fca1a3e0e7daf83381115 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-04-19 23:08:17 |
| Source code size: | 481 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 952 / 1014 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |