Animations and handling events

Hi,I want to display an animation on a JPanel. But when I draw on JPanel using a threads run method, the JPanel stops responding to other events such as mouse clicks on JButtons.Can u plz tell me what is wrong.Thanks a lot,Chamal.
[265 byte] By [chamalsla] at [2007-10-1 23:28:46]
# 1
You are probably occupying the UI thread with other things
tjacobs01a at 2007-7-15 14:11:22 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...
# 2
Hi,Thanks a lot for your reply.I am not that familiar with threads and GUI. What is UI thread. How can I avoid using it.Best Regards,Chamal.
chamalsla at 2007-7-15 14:11:22 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...