if (! EbMap.isSectorDataLoaded(sectorX, sectorY))
boolean ok = (sectorX < MapEditor.widthInSectors) && (sectorY < MapEditor.heightInSectors);  cantTeleport.setEnabled(ok); unknown.setEnabled(ok); townMap.setEnabled(ok); misc.setEnabled(ok); item.setEnabled(ok);  if (ok && (! EbMap.isSectorDataLoaded(sectorX, sectorY)))
	private void updateComponents()	{		int sectorX = Integer.parseInt(this.sectorX.getText()),			sectorY = Integer.parseInt(this.sectorY.getText());		if (! EbMap.isSectorDataLoaded(sectorX, sectorY))			EbMap.loadSectorData(rom, sectorX, sectorY);		EbMap.Sector sector = EbMap.getSectorData(sectorX, sectorY);		cantTeleport.setSelected(sector.cantTeleport());		unknown.setSelected(sector.isUnknownEnabled());		townMap.setSelectedIndex(sector.getTownMap());		misc.setSelectedIndex(sector.getMisc());		item.setSelectedIndex(sector.getItem() & 0xff);		item.repaint();	}