How to create a window in java that having system screen size/dimension
JFrame frame = new JFrame();
frame.setExtendedState(Frame.MAXIMIZED_BOTH);
Or
Dimension screenDimension = getScreenDimension();
frame.setSize(screenDimension.width,screenDimension.height );
private Dimension getScreenDimension() {
Toolkit toolkit = Toolkit.getDefaultToolkit(); Dimension dimension = toolkit.getScreenSize(); return dimension; }
How to set screen dimension to application window.
Hi Friends,
This is a small blog.
Please provide your valuable feedbacks
No comments:
Post a Comment
Your feedback may help others !!!