Getting the Size of the Screen - Java 2D Graphics

Java examples for 2D Graphics:Screen

Description

Getting the Size of the Screen

Demo Code

import java.awt.Dimension;
import java.awt.Toolkit;

public class Main {

  public void main(String[] argv) {
    Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
  }//from   w w  w  .  j a v a 2  s . c o m
}

Related Tutorials