@Override
    public void fileChoosed(String filePath, int code) {
        this.setVisible(true);
        if (filePath.length() > 0) {
            if (code == FILE_CHOOSER_CODE_SOURCE_FILE) {
                sourceFileField.setText(filePath);
            } else if (code == FILE_CHOOSER_CODE_SOURCE_IMAGE) {
                sourceImageSelected(filePath);
            } else if (code == FILE_CHOOSER_CODE_TARGET_IMAGE) {
                targetImageField.setText(filePath);
            } else if (code == FILE_CHOOSER_CODE_TARGET_FILE) {
                targetFileField.setText(filePath);
            } else if (code == FILE_CHOOSER_CODE_OTP_IMAGE) {
                otpImage.setText(filePath);
            }
        }
    }