getScreenSize() method giving java.awt.HeadlessException

Printable View