private void instanceDialogModpackComboBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_instanceDialogModpackComboBoxActionPerformed
        try {
            instanceDialogVersionComboBox.removeAllItems();
            instanceDialogVersionComboBox.addItem("Recommended");

            try {
                JSONObject packConfig = Util.readJSONFile("./packs/" + instanceDialogModpackComboBox.getSelectedItem().toString() + "/pack.json");
                JSONArray versionsArray = (JSONArray)packConfig.get("versions");
                for (Object obj : versionsArray) {
                    JSONObject versionObj = (JSONObject)obj;
                    instanceDialogVersionComboBox.addItem(versionObj.get("name").toString());
                }
            } catch (IOException ex) {
                Logger.warning("MainForm.instanceDialogWindowOpened", "Failed to load available pack versions!");
            }
        } catch (Exception ex) { }
    }//GEN-LAST:event_instanceDialogModpackComboBoxActionPerformed