private void romLoaded() {
		try {
			this.currentRestrictions = null;
			this.currentCodeTweaks = 0;
			updateCodeTweaksButtonText();
			this.riRomNameLabel.setText(this.romHandler.getROMName());
			this.riRomCodeLabel.setText(this.romHandler.getROMCode());
			this.riRomSupportLabel.setText(bundle
					.getString("RandomizerGUI.romSupportPrefix")
					+ " "
					+ this.romHandler.getSupportLevel());
			this.goUpdateMovesCheckBox.setSelected(false);
			if (romHandler instanceof Gen1RomHandler) {
				this.goUpdateTypesCheckBox.setEnabled(true);
			}
			this.goUpdateMovesCheckBox.setSelected(false);
			this.goUpdateMovesCheckBox.setEnabled(true);
			this.goUpdateMovesLegacyCheckBox.setSelected(false);
			this.goUpdateMovesLegacyCheckBox.setEnabled(false);
			this.goUpdateMovesLegacyCheckBox
					.setVisible(!(romHandler instanceof Gen5RomHandler));
			this.goRemoveTradeEvosCheckBox.setSelected(false);
			this.goRemoveTradeEvosCheckBox.setEnabled(true);
			if (!(romHandler instanceof Gen5RomHandler)
					&& !(romHandler instanceof Gen4RomHandler)) {
				this.goLowerCaseNamesCheckBox.setSelected(false);
				this.goLowerCaseNamesCheckBox.setEnabled(true);
			}
			if (romHandler instanceof Gen3RomHandler) {
				this.goNationalDexCheckBox.setSelected(false);
				this.goNationalDexCheckBox.setEnabled(true);
			}
			this.raceModeCB.setSelected(false);
			this.raceModeCB.setEnabled(true);

			this.codeTweaksCB.setSelected(false);
			this.codeTweaksCB.setEnabled(romHandler.codeTweaksAvailable() != 0);
			this.codeTweaksBtn.setEnabled(false);
			this.codeTweaksBtn
					.setVisible(romHandler.codeTweaksAvailable() != 0);
			this.codeTweaksCB.setVisible(romHandler.codeTweaksAvailable() != 0);

			this.pokeLimitCB.setSelected(false);
			this.pokeLimitBtn.setEnabled(false);
			this.pokeLimitCB
					.setEnabled(!(romHandler instanceof Gen1RomHandler));
			this.pokeLimitCB
					.setVisible(!(romHandler instanceof Gen1RomHandler));
			this.pokeLimitBtn
					.setVisible(!(romHandler instanceof Gen1RomHandler));

			this.randomizeHollowsCB.setSelected(false);
			this.randomizeHollowsCB.setEnabled(romHandler
					.hasHiddenHollowPokemon());

			this.brokenMovesCB.setSelected(false);
			this.brokenMovesCB.setEnabled(true);

			this.loadQSButton.setEnabled(true);
			this.saveQSButton.setEnabled(true);

			this.pbsChangesUnchangedRB.setEnabled(true);
			this.pbsChangesUnchangedRB.setSelected(true);
			this.pbsChangesRandomEvosRB.setEnabled(true);
			this.pbsChangesRandomTotalRB.setEnabled(true);
			this.pbsChangesShuffleRB.setEnabled(true);

			this.pbsStandardEXPCurvesCB.setEnabled(true);
			this.pbsStandardEXPCurvesCB.setSelected(false);

			if (romHandler.abilitiesPerPokemon() > 0) {
				this.paUnchangedRB.setEnabled(true);
				this.paUnchangedRB.setSelected(true);
				this.paRandomizeRB.setEnabled(true);
				this.paWonderGuardCB.setEnabled(false);
			} else {
				this.abilitiesPanel.setVisible(false);
			}

			this.spUnchangedRB.setEnabled(true);
			this.spUnchangedRB.setSelected(true);

			this.spCustomPoke3Chooser.setVisible(true);
			if (romHandler.canChangeStarters()) {
				this.spCustomRB.setEnabled(true);
				this.spRandomRB.setEnabled(true);
				this.spRandom2EvosRB.setEnabled(true);
				if (romHandler.isYellow()) {
					this.spCustomPoke3Chooser.setVisible(false);
				}
				populateDropdowns();
			}

			this.spHeldItemsCB.setSelected(false);
			boolean hasStarterHeldItems = (romHandler instanceof Gen2RomHandler || romHandler instanceof Gen3RomHandler);
			this.spHeldItemsCB.setEnabled(hasStarterHeldItems);
			this.spHeldItemsCB.setVisible(hasStarterHeldItems);

			this.pmsRandomTotalRB.setEnabled(true);
			this.pmsRandomTypeRB.setEnabled(true);
			this.pmsUnchangedRB.setEnabled(true);
			this.pmsUnchangedRB.setSelected(true);
			this.pmsMetronomeOnlyRB.setEnabled(true);

			if (romHandler instanceof Gen1RomHandler) {
				this.pmsGen14MovesCB.setVisible(true);
			} else {
				this.pmsGen14MovesCB.setVisible(false);
			}

			this.ptRandomFollowEvosRB.setEnabled(true);
			this.ptRandomTotalRB.setEnabled(true);
			this.ptUnchangedRB.setEnabled(true);
			this.ptUnchangedRB.setSelected(true);

			this.tpRandomRB.setEnabled(true);
			this.tpTypeThemedRB.setEnabled(true);
			this.tpUnchangedRB.setEnabled(true);
			this.tpUnchangedRB.setSelected(true);
			this.tnRandomizeCB.setEnabled(true);
			this.tcnRandomizeCB.setEnabled(true);

			if (romHandler instanceof Gen1RomHandler
					|| romHandler instanceof Gen2RomHandler) {
				this.tpNoEarlyShedinjaCB.setVisible(false);
			} else {
				this.tpNoEarlyShedinjaCB.setVisible(true);
			}
			this.tpNoEarlyShedinjaCB.setSelected(false);

			this.wpArea11RB.setEnabled(true);
			this.wpGlobalRB.setEnabled(true);
			this.wpRandomRB.setEnabled(true);
			this.wpUnchangedRB.setEnabled(true);
			this.wpUnchangedRB.setSelected(true);
			this.wpUseTimeCB.setEnabled(false);
			this.wpNoLegendariesCB.setEnabled(false);
			if (!romHandler.hasTimeBasedEncounters()) {
				this.wpUseTimeCB.setVisible(false);
			}
			this.wpCatchRateCB.setEnabled(true);

			this.wpHeldItemsCB.setSelected(false);
			this.wpHeldItemsCB.setEnabled(true);
			if (romHandler instanceof Gen1RomHandler) {
				this.wpHeldItemsCB.setVisible(false);
			}

			this.stpUnchangedRB.setEnabled(true);
			if (this.romHandler.canChangeStaticPokemon()) {
				this.stpRandomL4LRB.setEnabled(true);
				this.stpRandomTotalRB.setEnabled(true);

			}

			this.tmmRandomRB.setEnabled(true);
			this.tmmUnchangedRB.setEnabled(true);

			this.thcRandomTotalRB.setEnabled(true);
			this.thcRandomTypeRB.setEnabled(true);
			this.thcUnchangedRB.setEnabled(true);

			if (this.romHandler.hasMoveTutors()) {
				this.mtmRandomRB.setEnabled(true);
				this.mtmUnchangedRB.setEnabled(true);

				this.mtcRandomTotalRB.setEnabled(true);
				this.mtcRandomTypeRB.setEnabled(true);
				this.mtcUnchangedRB.setEnabled(true);
			} else {
				this.mtCompatPanel.setVisible(false);
				this.mtMovesPanel.setVisible(false);
				this.mtNoExistLabel.setVisible(true);
			}

			this.igtUnchangedRB.setEnabled(true);
			this.igtBothRB.setEnabled(true);
			this.igtGivenOnlyRB.setEnabled(true);

			if (this.romHandler instanceof Gen1RomHandler) {
				this.igtRandomItemCB.setVisible(false);
				this.igtRandomIVsCB.setVisible(false);
				this.igtRandomOTCB.setVisible(false);
			}

			this.fiUnchangedRB.setEnabled(true);
			this.fiRandomRB.setEnabled(true);
			this.fiShuffleRB.setEnabled(true);

			if (this.romHandler instanceof AbstractDSRomHandler) {
				((AbstractDSRomHandler) this.romHandler).closeInnerRom();
			}
		} catch (Exception ex) {
			long time = System.currentTimeMillis();
			try {
				String errlog = "error_" + time + ".txt";
				PrintStream ps = new PrintStream(new FileOutputStream(errlog));
				PrintStream e1 = System.err;
				System.setErr(ps);
				ex.printStackTrace();
				System.setErr(e1);
				ps.close();
				JOptionPane
						.showMessageDialog(
								RandomizerGUI.this,
								String.format(
										bundle.getString("RandomizerGUI.processFailed"),
										errlog));
			} catch (Exception logex) {
				JOptionPane.showMessageDialog(RandomizerGUI.this,
						bundle.getString("RandomizerGUI.processFailedNoLog"));
			}
		}
	}