You can use Timer API to schedule your task on time provided by the user.Timer (Java 2 Platform SE v1.4.2)