List of usage examples for java.awt Frame setMaximizedBounds
public void setMaximizedBounds(Rectangle bounds)
From source file:Main.java
public static void main() { Frame frame = new Frame(); Rectangle bounds = new Rectangle(20, 20, 200, 200); frame.setMaximizedBounds(bounds); frame.setVisible(true);// w ww . j a v a2 s . c o m }