February 06, 2012

How to create maximize and minimize java swing frame

How to create a window in java that having system screen size/dimension

JFrame frame = new JFrame();


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

Thanking you.... +Belazy L 

Facebook comments