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

static Rectangle screenRectangle() {
  ret new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());
}

static Rectangle screenRectangle(GraphicsDevice device) {
  if (device == null) null;
  DisplayMode mode = device.getDisplayMode();
  ret new Rectangle(0, 0, mode.getWidth(), mode.getHeight());
}

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: 484 / 528
Version history: 1 change(s)
Referenced in: [show references]