You might consider buying a book on Java. If you'd prefer an online tutorial, there are a number of them. After some searching, I found http://www.ibiblio.org/javafaq/javatutorial.html. However, I have personally not used it. Not to sound accusatory, but it sounds like you're relying too much on other people's code. Sharing is good; reliance is not. Anyways, good luck.