1 | static <A extends Component> A setBounds(final int x, final int y, final int w, final int h, final A a) { |
2 | if (a != null) swing { |
3 | a.setBounds(x, y, w, h); |
4 | } |
5 | ret a; |
6 | } |
7 | |
8 | static <A extends Component> A setBounds(A a, Rect r) { |
9 | if (a != null && r != null) swing { |
10 | a.setBounds(toRectangle(r)); |
11 | } |
12 | ret a; |
13 | } |
14 | |
15 | static <A extends Component> A setBounds(A a, Rectangle r) { |
16 | if (a != null && r != null) swing { |
17 | a.setBounds(r); |
18 | } |
19 | ret a; |
20 | } |
21 | |
22 | static <A extends Component> A setBounds(Rect r, A a) { |
23 | ret setBounds(a, r); |
24 | } |
25 | |
26 | static <A extends Component> A setBounds(A a, int x, int y, int w, int h) { |
27 | ret setBounds(x, y, w, h, a); |
28 | } |
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: | 638 / 662 |
Version history: | 7 change(s) |
Referenced in: | [show references] |