Instead of creating an instance of the toolkit just to use it once, and an instance of the dimension, again to just use it once, just do System.out.println(Toolkit.getDefaultToolkit().getScreenSize.width); and System.out.println(Toolkit.getDefaultToolkit().getScreenSize.height);
This is a lot better... trust me.
Inefficient...aetherX December 19, 2011 at 5:15 PM
Instead of creating an instance of the toolkit just to use it once, and an instance of the dimension, again to just use it once, just do System.out.println(Toolkit.getDefaultToolkit().getScreenSize.width); and System.out.println(Toolkit.getDefaultToolkit().getScreenSize.height); This is a lot better... trust me.
Using this on CF?Hamlet February 21, 2012 at 3:03 AM
Very nice! How would you use this in ColdFusion?
Post your Comment