Java GraphicsEnvironment .getMaximumWindowBounds ()
Syntax
GraphicsEnvironment.getMaximumWindowBounds() has the following syntax.
public Rectangle getMaximumWindowBounds() throws HeadlessException
Example
In the following code shows how to use GraphicsEnvironment.getMaximumWindowBounds() method.
import java.awt.GraphicsEnvironment;
/*from w w w . j av a 2s .com*/
public class Main {
public static void main(String[] args) {
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
System.out.println(ge.getMaximumWindowBounds());
}
}
Home »
Java Tutorial »
java.awt »
Java Tutorial »
java.awt »