static <A extends Component> A setBounds(final int x, final int y, final int w, final int h, final A a) { if (a != null) swing { a.setBounds(x, y, w, h); } ret a; } static <A extends Component> A setBounds(A a, Rect r) { if (a != null && r != null) swing { a.setBounds(toRectangle(r)); } ret a; } static <A extends Component> A setBounds(A a, Rectangle r) { if (a != null && r != null) swing { a.setBounds(r); } ret a; } static <A extends Component> A setBounds(Rect r, A a) { ret setBounds(a, r); } static <A extends Component> A setBounds(A a, int x, int y, int w, int h) { ret setBounds(x, y, w, h, a); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1009936 |
| Snippet name: | setBounds - set bounds of component |
| Eternal ID of this version: | #1009936/8 |
| Text MD5: | 51c966bf5e8e9b29fbfebc1c933a5bf5 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-01-09 18:48:53 |
| Source code size: | 672 bytes / 28 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1211 / 1231 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |