Time restricted method
Basically am building a GUI to control elements in a factory.
When an element's proportion changes outside of it's critical range, it needs to be put back inside it's boundary within 3 seconds.
Is there a class I can use which will place a timelimit on calling a method?
Well, you could clock the time when an element is changed, and clock it when the method is called. The method can they react according to how much has passed.
To get the time, you can use the System, java.util.Date, or java.sql.Time class.