A digital and analog clock written in Java