static <A> A setFrameTitle(A c, fS title) { final Frame f = getAWTFrame(c); if (f != null) swing { f.setTitle(title); } ret c; } static <A extends Component> A setFrameTitle(S title, A c) { ret setFrameTitle(c, title); } // magically find a field called "frame" in main class :-) static JFrame setFrameTitle(S title) { O f = getOpt(mc(), "frame"); if (f instanceof JFrame) ret setFrameTitle((JFrame) f, title); ret null; }
Began life as a copy of #1001439
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: | #1001733 |
Snippet name: | setFrameTitle |
Eternal ID of this version: | #1001733/7 |
Text MD5: | 1b03930ac90440aa04c0564b4a2cf09a |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-23 19:09:41 |
Source code size: | 458 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 870 / 1149 |
Version history: | 6 change(s) |
Referenced in: | [show references] |