private void updateFilePath()
    {
        try
        {
            targetDir = targetDir.getCanonicalFile();
        }
        catch(IOException e)
        {

        }

        InstallerAction action = InstallerAction.CLIENT;
        boolean valid = action.isPathValid(targetDir);

        if(valid)
        {
            infoLabel.setVisible(false);
            fileEntryPanel.setBorder(null);
        }
        else
        {
            fileEntryPanel.setBorder(new LineBorder(Color.RED));
            infoLabel.setText("<html>" + action.getFileError(targetDir) + "</html>");
            infoLabel.setVisible(true);
        }
        if(dialog != null)
        {
            dialog.invalidate();
            dialog.pack();
        }
    }