Draw with your mouse on a slate developped in Java. This code could help you do something else. So get inspired. ENJOY!