I got a problem now i cant use sqltimer.stop(); when i press the disconnect button i get an error on eclipse saying sqltimer cannot be resolved
even though its delcared properly it just cant seem to find variable sqltimer :\
sean beacham wrote:something like Timer sqltimer; in the main class?
I don't know what you mean by "the main class". The variable should be declared at a higher level in the class from which that code was extracted. Quite likely it would have to be an instance variable of the class, since making it a local variable in one method makes it inaccessible from any other method.
but then when i do an action listener on it what do i do?