I hava a very annoying thread problem...
I have this college project involving threads, which is a game loosely based on missile command.
the game interface is made of two panels inside a JLayeredPane, one panel being where the missiles are drawn, while the other panel for a cursor.How can I:
1. show the cursor and the missiles(the missiles are threaded,the cursor is'nt) at the same time... I tried using the synchronized block to no avail.
2.move the cursor using a keylistener, without waiting for the missile animation to end.
also note that the missiles are in a separate class, and their thread is given by the jframe main class.