Auto detect window res to save to file #3

Open
opened 2016-10-23 07:52:46 +00:00 by maximstewart · 0 comments
maximstewart commented 2016-10-23 07:52:46 +00:00 (Migrated from github.com)

Auto detect window res to save to file
Remove Screen res fields.
Possibly a way to determin screen number to then out to a file for that screen.

:: Use ::

import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;

// this looks at the main window
// need to get the one one is on....
GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
int width = gd.getDisplayMode().getWidth();
int height = gd.getDisplayMode().getHeight();

Auto detect window res to save to file Remove Screen res fields. Possibly a way to determin screen number to then out to a file for that screen. :: Use :: import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; // this looks at the main window // need to get the one one is on.... GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice(); int width = gd.getDisplayMode().getWidth(); int height = gd.getDisplayMode().getHeight();
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: itdominator/GWinWrap#3
No description provided.