This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
i'll be honest. i'm new to java and i have an assignment that requires me to create a networked canvas (intranet) which 2 users will draw on and both sides will see what each other have drawn on the canvas . its called a collaborative white board in the assignment title.
would someone please kindly teach me or point me to the correct direction i should be going?
i need to code it(for my assignment) and more importantly to understand it(for knowledge's sake).
i've searched online and found a sample or two but they are too complicated for my level....i can't make sense out of it...
this is the code so far that i have. its basically a canvas to draw things on it. (note: the code below contains code taken from the net) (sorry i'm new to java and am learning through trial and error)
This code will help you learning how to draw stuff and how to call paint methods, but so far it looks like it will only allow you to draw circles.
If you dont know java it will be an inmense challenge, because you will need to learn how to program sockets to share data between the two persons
on the network, then you will need to learn threads to listen everytime if the other person is drawing.
Also, you will need to create a thread that listens to your mouse, and when you "click" inside the whiteboard it will place a "dot" of color on any
place where you move your mouse while holding the click.
I know that this is not a really accurate answer, but in order to accomplish this you should have some solid java background first.