Hi everyone! I'm new to java and wondering if anyone could share some code with me. In Visual Basic the following code draws lines using the mousemove event. How can I do this using java:

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Line (CurrentX, CurrentY)-(X, Y)
End Sub

Thanks in advance,
Joey O.