1 | static void doubleWindowSizeToTheTop(final Component c) { |
2 | swing { |
3 | Window w = getWindow(c); |
4 | if (w == null) ret; |
5 | int height = w.getHeight(); |
6 | w.setBounds(w.getX(), w.getY()-height, w.getWidth(), height*2); |
7 | } |
8 | } |
Began life as a copy of #1014526
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: | #1014530 |
Snippet name: | doubleWindowSizeToTheTop |
Eternal ID of this version: | #1014530/1 |
Text MD5: | ab3c8cbbfb0001dad53f511af3a8e9a7 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-23 18:32:37 |
Source code size: | 233 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 397 / 412 |
Referenced in: | [show references] |