Download Jar. Libraryless. Click here for Pure Java version (979L/7K).
1 | !7 |
2 | |
3 | p { |
4 | print(); |
5 | GraphicsDevice[] devices = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices(); |
6 | for (GraphicsDevice d : devices) { |
7 | print(d.getIDstring()); |
8 | GraphicsConfiguration config = d.getDefaultConfiguration(); |
9 | print(" Bounds: " + config.getBounds()); |
10 | print(" Accellerated memory: " + toM(d.getAvailableAcceleratedMemory()) + " MB"); |
11 | print(); |
12 | } |
13 | } |
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: | 445 / 978 |
Version history: | 6 change(s) |
Referenced in: | [show references] |