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

9
LINES

< > BotCompany Repo | #1004980 // screenRectangle

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

Libraryless. Click here for Pure Java version (35L/1K).

1  
static Rectangle screenRectangle() {
2  
  ret new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());
3  
}
4  
5  
static Rectangle screenRectangle(GraphicsDevice device) {
6  
  if (device == null) null;
7  
  DisplayMode mode = device.getDisplayMode();
8  
  ret new Rectangle(0, 0, mode.getWidth(), mode.getHeight());
9  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004980
Snippet name: screenRectangle
Eternal ID of this version: #1004980/2
Text MD5: 4dc870d355b114f87efe5a515e07917b
Transpilation MD5: add5b3afba86e6e7189bf5e16955f469
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-06 14:33:11
Source code size: 311 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 549 / 614
Version history: 1 change(s)
Referenced in: [show references]