JFileChooser is loosing focus when launched first time

Parent component for JFileChooser was not properly defined in showOpenDialog methid.