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

13
LINES

< > BotCompany Repo | #1013931 // Print graphics devices (screens) & resolutions [WORKS]

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

Download Jar. Libraryless. Click here for Pure Java version (979L/7K).

!7

p {
    print();
   GraphicsDevice[] devices = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices();
   for (GraphicsDevice d : devices) {
     print(d.getIDstring());
     GraphicsConfiguration config = d.getDefaultConfiguration();
     print("  Bounds: " + config.getBounds());
     print("  Accellerated memory: " + toM(d.getAvailableAcceleratedMemory()) + " MB");
     print();
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1013931
Snippet name: Print graphics devices (screens) & resolutions [WORKS]
Eternal ID of this version: #1013931/7
Text MD5: 056efd54175ca0a0de93e3e7578b5979
Transpilation MD5: f06081c441583a8ec27ffb97e277b1d7
Author: stefan
Category: javax / a.i. / web
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-16 17:25:00
Source code size: 419 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 303 / 713
Version history: 6 change(s)
Referenced in: [show references]