@@ -0,0 +1,838 @@
+/*%0A *               In the name of Allah%0A * This file is part of The %22Quran Teacher or Learn Arabic%22 Project. Use is subject to%0A * license terms.%0A *%0A * @author:         Fazle Rabbi Rahat%0A * %0A */%0Apackage QuranTeacher.RenderAnimation;%0A%0Aimport java.awt.Point;%0Aimport java.awt.Rectangle;%0Aimport java.util.List;%0A%0Apublic class FocusCheckRunnable implements Runnable%0A%7B%0A%09/*%0A%09 * For checking mouse focus on any word appeared in the display%0A%09 */%0A%09%0A%09static List%3CRectangle%3Erectangles=Animation.rectangles;%0A%09Point cursor;%0A%09%0A%09public FocusCheckRunnable(Point p) %0A%09%7B%0A%09%09cursor=p;%0A%09%7D%0A%0A%09@Override%0A%09public void run() %0A%09%7B%0A%09%09//System.out.println(Thread.currentThread().getName());%0A%09%09for(int i=0;i%3Crectangles.size();i++)%0A%09%09%7B%0A%09%09%09if(rectangles.get(i).contains(cursor))%0A%09%09%09%7B%0A%09%09%09%09Animation.mouseFocusedOn=i;%0A%09%09%09%09return;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09Animation.mouseFocusedOn=-1;%0A%09%7D%0A%7D%0A

Create FocusCheckRunnable.java