This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
I have asked you once before. Please do not post the same question in more than one forum. If you are not getting the answers you need, perhaps you need to ask better questions. Again, I refer you to our Guide on How To Ask Questions. We aren't just going to give you source code, as your reply in the advanced forum seems to be asking, but we will help you with specific questions about how to use Java.