Timer added
JComponent to Component since the function only requires methods Component provides.