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).

svoid dm_placeInBottomRightCorner() {
  Container frame = dm_frame();
  Rectangle desktop = getBounds(dm_desktopPane());
  if (frame != null && desktop != null) {
    Rectangle me = getBounds(frame);
    DynModule mod = dm_current();
    dm_setBounds(mod, desktop.width-me.width, desktop.height-me.height, me.width, me.height);
  }
}

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: 182 / 261
Referenced in: [show references]