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

9
LINES

< > BotCompany Repo | #1027523 // dm_placeInBottomRightCorner

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

Libraryless. Click here for Pure Java version (10309L/72K).

1  
svoid dm_placeInBottomRightCorner() {
2  
  Container frame = dm_frame();
3  
  Rectangle desktop = getBounds(dm_desktopPane());
4  
  if (frame != null && desktop != null) {
5  
    Rectangle me = getBounds(frame);
6  
    DynModule mod = dm_current();
7  
    dm_setBounds(mod, desktop.width-me.width, desktop.height-me.height, me.width, me.height);
8  
  }
9  
}

Author comment

Began life as a copy of #1019048

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027523
Snippet name: dm_placeInBottomRightCorner
Eternal ID of this version: #1027523/1
Text MD5: 234ce98156f64f1de0f7e6382c923508
Transpilation MD5: 4d149ef5a5fd03e5b14a8146be52a1bd
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-22 22:29:51
Source code size: 341 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 183 / 264
Referenced in: [show references]