public void updateSensorScreenPos(long sensorId, int screenPosX, int screenPosY) {
        String newPos = screenPosX + "," + screenPosY;
        SensorInfo sensor = sensorInfoJpaController.findSensorInfo(sensorId);
        sensor.setScreenPosition(newPos);
        try {
            sensorInfoJpaController.edit(sensor);
            sensorUpdated(sensor);
        } catch (NonexistentEntityException ex) {
            Logger.getLogger(ViewController.class.getName()).log(Level.SEVERE, null, ex);
        } catch (Exception ex) {
            Logger.getLogger(ViewController.class.getName()).log(Level.SEVERE, null, ex);
        }
    }