Hello everyone,
This is my first thread in this forum and I am a java beginner, so please don't harsh on me

Excuse me if my question sounds SO SO LAME.
I now have to write a networked board game which involves dragging around cards in the window.
As of the start, I am trying to drag a JLabel around in one client and send the data to server which distributes to other clients to see that JLabel moving in their windows as well.
What I did is add MouseActionListener and MouseMotionListener to the JLabel and send the data to server while the JLabel is being dragged.
There I got a problem where I can't write out server to update the JLabel's location and keep getting
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException ..
I did it in the same way as I did my chat client where I write out data from client's input with ActionListener.
Any ponters on where I should start learning about it and any pointer on this matter will be welcomed..
All I want to see now is my two clients synchronizing when I label is dragged...
Thanks in advance