JDialog locationCheckDialog = new JDialog();
locationCheckDialog.setModal(true);
locationCheckDialog.setAlwaysOnTop(true);
locationCheckDialog.setTitle("Locate Dota 2");
locationCheckDialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
SteamLocationPanel panel = new SteamLocationPanel(prefs, false, locationCheckDialog);
locationCheckDialog.add(panel);
locationCheckDialog.setSize(panel.getPreferredSize());
locationCheckDialog.setVisible(true);
}
String vpkPath = prefs.getVPKPath();
String installDir = prefs.getInstallDir();