lol...

try this man:



// Get the size of the screen
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();