incredible edible lag

My fighter seems to be undergoing and incredible ammount of lag. Ive got 2 application clients connecting to an application server, sending information about each move back and forth. The problem is that my clients aren't keeping up with one another so there are 2 different game boards being drawn (kinda bad in a fighter). i am in a high school CSII class and program at the same level. this means that i am using swing and awt components to draw my board. I know there are inherent problems with this method, i just dont know what they are. is it my method of drawing that is causing the lag? or is it probably something else?

I noticed that when i had the clients as applets they would lag in the applet veiwer, but not in the web browser. is this a common thing? is there a similar way to fix the lag with an application?

[840 byte] By [IIIIIIlla] at [2007-9-28 19:10:46]
# 1

Try sending a timestamp with your packets and simply creating a log of the content of the timestamp and the time it arrives on the client while your program is running- that should at least let you know whether it is your networking or your rendering that is causing the problem. That said, I think maybe if you have the networking running in it's own thread it shouldn't intefere too much anyway. And if you don't that may be the next thing to try. I'm not really a networking expert though, so I may be wrong.

Breakfasta at 2007-7-12 17:36:13 > top of Java-index,Other Topics,Java Game Development...