Welcome to the forum. The first thing most of us will suggest to you is to break your problem down into small bits and solve each small bit in isolation, then you will have solved the big problem.
Now since your question is very general I cannot give any specific recommendations. All I can say is a good site for learning and source of inspiration is the Sun Java tutorial located here:
The Java Tutorials