Auto detect window res to save to file #3
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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();