Getting the Screen Size : Toolkit « Development Class « Java
- Java
- Development Class
- Toolkit
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();
System.out.println(dim);
}
}
Related examples in the same category