problem with Scheduling a Timer Task to Run Repeatedly every month
here is a code I used in making a scheduling a timer task to run repeatedly...
int delay = 5000;// delay for 5 sec.
int period = 1000;// repeat every sec.
Timer timer =new Timer();
timer.scheduleAtFixedRate(new TimerTask(){
publicvoid run(){
// Task here ...
}
}, delay, period);
but when I change theint period to run every month
int period = 1000*3600*24*30
I encounter this
Exception in thread"AWT-EventQueue-0" java.lang.IllegalArgumentException: Non-positive period.
I changeint period value of 1000 to 10000 and it works but this is not equal to 1 month...
I also tried change int to double...long...etc but I still encounter the same Exception...how come when I tried changing 1000 to 10000 my program runs without that exception..any help with regards to this?

