GraphicsDevice[] gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices(); for (int i = 0; i < gd.length; i++) { DisplayMode dm = gd[i].getDisplayMode(); System.out.println(dm.getWidth() + " x " + dm.getHeight()); }
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionGraphicsDevice[] gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices(); for (int i = 0; i < gd.length; i++) { Rectangle bounds = gd[i].getConfigurations()[0].getBounds(); if (bounds.contains(point)) { ... } }