Added support for automated installation to JDKPathPanel and fixed existing support for the same in ShortcutPanel

This change is important to support automated installation.