I think the way in which i would solve this problem is to have a Thread and an array which holds some kind of pair of long -> JPanels. The thread essentially checks the longs in the array to check if a given time has passed, and swaps over the associated Panel with the current one if it has...
Here's the code for the abstract class...
import java.util.Hashtable;
import java.lang.reflect.Field;
public abstract class Attributable {
public Hashtable getAllAttributes() throws IllegalAccessException {
Class c = this.getClass();
Field[] fs = c.getFields()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.