Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();


Java Sun's site is down right now so I can't check but I'm guessing this is an old method since according to Eclipse, the method doesn't exist anymore. So my question is, are there any other ways to do the same thing?

Nevermind. Eclipse had either imported the wrong class without telling me, or I did it and forgot. Either way, I removed the import and everything is fine.