// 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();
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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();