1 | static void setFrameBounds(final Component c, final Rectangle bounds) { |
2 | if (c != null) swing { |
3 | JFrame f = getFrame(c); |
4 | if (f != null) { |
5 | f.setBounds(bounds); |
6 | revalidate(f); |
7 | } |
8 | } |
9 | } |
10 | |
11 | static void setFrameBounds(Component c, int x, int y, int w, int h) { |
12 | setFrameBounds(c, new Rectangle(x, y, w, h)); |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005667 |
Snippet name: | setFrameBounds |
Eternal ID of this version: | #1005667/4 |
Text MD5: | 5b51769584f3ffb1c7c022f34e2e55bc |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-02-27 14:37:51 |
Source code size: | 338 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 632 / 632 |
Version history: | 3 change(s) |
Referenced in: | [show references] |