I am wondering if Java Toolkit can be used to get the browser\'s window size. I have the following code, but it takes screenshot of the whole screen. I\'d like to take the scre