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.