/** Constructor for PCF8563Demo. */
  public PCF8563Demo() {

    my8563 = new PCF8563();
    ttrans = new Time();
    Display lcd = new Display();

    // initialize the rtc
    try {
      my8563.reset();
    } catch (IOException ex) {
    }

    // get time/date from rtc
    try {
      my8563.getTime(ttrans);
    } catch (IOException ex) {
      if (ex instanceof TimeIntegrityLostException) {
        lcd.drawString("PCF8563-time not valid", 4, 31);
      }
    }

    // set time/date of the JCU
    RTC.setTime(ttrans);

    // initialize vole components
    mainContainer = new Container();
    mainContainer.setBounds(0, 0, 128, 64);
    this.add(mainContainer);
    mainMenu();
    setVisible(true);
  }