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

13
LINES

< > BotCompany Repo | #1026601 // showFrameInBottomRightCorner

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (6498L/46K).

please include function moveToBottomRightCorner.

static JFrame showFrameInBottomRightCorner(Component c, int width, int height) {
  JFrame frame = makeFrame(defaultFrameTitle(), c, false);
  swing {
    Rectangle r = maxWindowBounds();
    frame.setLocation(
      r.x+r.width-width-moveToBottomRightCorner_insetX,
      r.y+r.height-height-moveToBottomRightCorner_insetY);
    frame.setVisible(true);
  }
  ret frame;
}

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: #1026601
Snippet name: showFrameInBottomRightCorner
Eternal ID of this version: #1026601/3
Text MD5: dd5c51bc01cb36e8622eccaf508cc3bd
Transpilation MD5: 8f725e44bd0d6a1866d575f4055ba7e9
Author: stefan
Category: javax / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-15 15:18:55
Source code size: 433 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 387 / 1145
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)