1 | static <A extends Component> A setFrameSize(A c, int w, int h) { |
2 | JFrame f = getFrame(c); |
3 | if (f != null) |
4 | f.setSize(w, h); |
5 | ret c; |
6 | } |
7 | |
8 | static <A extends Component> A setFrameSize(int w, int h, A c) { |
9 | ret setFrameSize(c, w, h); |
10 | } |
Began life as a copy of #1003461
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: | #1008702 |
Snippet name: | setFrameSize |
Eternal ID of this version: | #1008702/2 |
Text MD5: | 6f7840e024bb88fa8498158907898d0e |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-02 16:48:09 |
Source code size: | 245 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 608 / 640 |
Version history: | 1 change(s) |
Referenced in: | [show references] |