> Can anyone point me in the right direction.
No, because I have no idea what class this method is in.
http://java.sun.com/j2se/1.5.0/docs/api/index.html
There are hundreds of classes. Find the one you're looking for and click on the setup() method. It will tell you what it does.