1 | static <A extends PApplet> A pMainAsComponent(Class<A> c) { |
2 | final A applet = pMain(c); |
3 | Window w = getWindow(applet); |
4 | applet.frame = null; |
5 | for (WindowListener l : w.getWindowListeners()) |
6 | w.removeWindowListener(l); |
7 | getParent(applet).remove(applet); |
8 | disposeWindow(w); |
9 | ret applet; |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016728 |
Snippet name: | pMainAsComponent - embeddable into JFrame, JInternalFrame etc. |
Eternal ID of this version: | #1016728/2 |
Text MD5: | 25cbb30b4e73cc959ff948a17f8cbf08 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-30 15:16:10 |
Source code size: | 305 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 351 / 398 |
Version history: | 1 change(s) |
Referenced in: | [show references] |