Mercurial > hg > Members > riono > TreeVNC_ja_comment
comparison src/viewer_swing/java/com/glavsoft/viewer/Viewer.java @ 417:c225c7963778
Send screen position
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 14 Dec 2015 16:20:20 +0900 |
parents | 73c96a1d4a3a |
children | ed15f0bd8dfa |
comparison
equal
deleted
inserted
replaced
416:b554dcc915c9 | 417:c225c7963778 |
---|---|
484 // Screens are numbered in the order from left. | 484 // Screens are numbered in the order from left. |
485 // put screens in an ArrayList. | 485 // put screens in an ArrayList. |
486 ArrayList<Rectangle> rectangles = new ArrayList<Rectangle>(); | 486 ArrayList<Rectangle> rectangles = new ArrayList<Rectangle>(); |
487 GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); | 487 GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); |
488 GraphicsDevice[] gs = ge.getScreenDevices(); | 488 GraphicsDevice[] gs = ge.getScreenDevices(); |
489 | |
489 for (GraphicsDevice gd : gs) { | 490 for (GraphicsDevice gd : gs) { |
490 for (GraphicsConfiguration r : gd.getConfigurations()) { | 491 for (GraphicsConfiguration r : gd.getConfigurations()) { |
491 rectangles.add(r.getBounds()); | 492 rectangles.add(r.getBounds()); |
492 } | 493 } |
493 } | 494 } |