@Override
    public void run() {
        // Show the GUI
        setVisible(true);
        // Update the time in near real time
        while (dataShare.isRunning()) {
            try {
                updateTime();
                updateBpm();
                startAlarms();
                setConnection();
            } catch (InterruptedException ex) {
                Logger.getLogger(ClientApp.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }