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

1  
please include function moveToBottomRightCorner.
2  
3  
static JFrame showFrameInBottomRightCorner(Component c, int width, int height) {
4  
  JFrame frame = makeFrame(defaultFrameTitle(), c, false);
5  
  swing {
6  
    Rectangle r = maxWindowBounds();
7  
    frame.setLocation(
8  
      r.x+r.width-width-moveToBottomRightCorner_insetX,
9  
      r.y+r.height-height-moveToBottomRightCorner_insetY);
10  
    frame.setVisible(true);
11  
  }
12  
  ret frame;
13  
}

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: 388 / 1146
Version history: 2 change(s)
Referenced in: [show references]