Auto detect window res to save to file #3

Open
by maximstewart opened 5 years ago · 0 comments
maximstewart commented 5 years ago (Migrated from github.com)
Owner

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

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.