What are some ways that i can increase run-time efficiency of GUI and sprite movement? It is a little bit laggy etc.

I know it is hard to tell without seeing my code, but is there any common methods such as notifyAll( ), ToolKit.sync().. that i can call to reduce lag etc.

p.s sorry, since it is school work, i am not allowed to post code on the internet :(