Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1014837 // setWindowBounds

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (4203L) is out of date.

1  
svoid setWindowBounds(int x, int y, int w, int h, Component c) swing {
2  
  var window = getWindow(c);
3  
  if (window != null)
4  
    window.setBounds(x, y, w, h);
5  
}
6  
7  
svoid setWindowBounds(Component c, int x, int y, int w, int h) {
8  
  setWindowBounds(x, y, w, h, c);
9  
}

Author comment

Began life as a copy of #1014294

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: #1014837
Snippet name: setWindowBounds
Eternal ID of this version: #1014837/6
Text MD5: a0860f4ce14aa94d3ed7844cdc16f728
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-16 02:34:11
Source code size: 267 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 379 / 478
Version history: 5 change(s)
Referenced in: [show references]