view raw
Andrew Andrew - 10 months ago 72
Java Question

How do you get the screen width in java?

Does anyone know how you would get the screen width in java? I read something about some toolkit method but I'm not quite sure what that is.

Thanks,
Andrew

Answer
java.awt.Toolkit.getDefaultToolkit().getScreenSize()