Hi,
I am getting HeadlessException for getScreenSize() method.Please find the below sample code for more details.
Dimension dim = null;
try{
dim = Toolkit.getDefaultToolkit().getScreenSize();
}catch(Exception e){
e.printStackTrace();
}
The getScreenSize() method is not working in Java 1.6.But it is working in 1.4.
Recently we have upgraded the java to 1.6.
Can you please help me on this issue ?|