screen resolution
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   samy_mani
Posted On:   Tuesday, July 13, 2004 06:16 AM



hi
is there any method in swing or awt package to get current
screen's resolution ?

Re: screen resolution

Posted By:   Eric_Espares  
Posted On:   Wednesday, July 14, 2004 05:35 PM

Please try to look at the Toolkit class getScreenSize() method. For example:


Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
System.out.println("Screen width: " + d.width + " Screen Height: " + d.height);


HTH,

Eric
About | Sitemap | Contact