when I close my java program it refreshes everything : Label.setEnabled(true)

If(i==0)
Label.setEnabled(false);

. if I is equal to 0 it would not be enabled but when I close the program and open it again it will be enabled instead of staying disabled. 