enabling calendar in Java