@Override
    public void actionPerformed(ActionEvent evt) {
        String cmd = evt.getActionCommand();
        switch (cmd) {
        case IC_ADD:
            addAlarm();
            break;

        case IC_EDIT:
            editAlarm();
            break;

        case IC_DELETE:
            deleteAlarm();
            break;

        case IC_START:
            switchAlarm(true);
            break;

        case IC_STOP:
            switchAlarm(false);
            break;

        case IC_SETTINGS:
            break;

        case IC_ABOUT:
            AboutDialog dlg = new AboutDialog(mainFrame);
            dlg.setLocationRelativeTo(mainFrame);
            dlg.setVisible(true);
            break;

        case IC_EXIT:
            mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            mainFrame.dispose();
            break;
        }
    }