Getting the Screen Size : Toolkit « Development Class « Java

Getting the Screen Size

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

public class Main {
  public static void main(String[] argv) throws Exception {
    Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();


Related examples in the same category

1.Check Desktop Property by using the Toolkit.getDefaultToolkit()
2.Use the getResourceAsStream method
3.Centering a Frame, Window, or Dialog on the Screen
4.Environment information.