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

7
LINES

< > BotCompany Repo | #1032082 // screenBounds

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

Libraryless. Click here for Pure Java version (3340L/18K).

static Rect screenBounds(GraphicsDevice screen) {
  ret screen == null ?: toRect(screen.getDefaultConfiguration().getBounds());
}

static Rect screenBounds(int iScreen) {
  ret screenBounds(get(screenDevices(), iScreen));
}

Author comment

Began life as a copy of #1018306

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032082
Snippet name: screenBounds
Eternal ID of this version: #1032082/2
Text MD5: 021f59022b920f03c790884fb1312d9e
Transpilation MD5: 69093430b28b2586c1a32fd100903b41
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-11 12:52:44
Source code size: 229 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 117 / 171
Version history: 1 change(s)
Referenced in: [show references]