Example usage for java.awt Frame setMaximizedBounds

List of usage examples for java.awt Frame setMaximizedBounds

Introduction

In this page you can find the example usage for java.awt Frame setMaximizedBounds.

Prototype

public void setMaximizedBounds(Rectangle bounds) 

Source Link

Document

Sets the maximized bounds for this frame.

Usage

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
}