editBox.setTsetPal(-1, -1);
if (editBox != null) editBox.setTsetPal(-1, -1);
		private void updateSectorComponents() {			if (tilesetList != null)				tilesetList.setEnabled(knowssector);			if (paletteBox != null)				paletteBox.setEnabled(knowssector);			if (musicBox != null)				musicBox.setEnabled(knowssector);			if (knowssector) {				int oldTset = -1;				if (tilesetList.isEnabled())					oldTset = tilesetList.getSelectedIndex();				EbMap.Sector sector = EbMap.getSectorData(sectorx, sectory);				tilesetList.removeActionListener(this);				tilesetList.setSelectedIndex(sector.getTileset());				tilesetList.addActionListener(this);				paletteBox.removeActionListener(this);				if (oldTset != sector.getTileset()) {					paletteBox.removeAllItems();					TileEditor.Tileset tileset = TileEditor.tilesets[EbMap							.getDrawTileset(sector.getTileset())];					for (int i = 0; i < tileset.getPaletteCount(); i++)						if (tileset.getPalette(i).mtileset == sector								.getTileset())							paletteBox.addItem(Integer.toString(tileset									.getPalette(i).mpalette));				}				paletteBox.setSelectedIndex(sector.getPalette());				paletteBox.addActionListener(this);				musicBox.removeActionListener(this);				musicBox.setSelectedIndex(sector.getMusic());				musicBox.addActionListener(this);				if (getModeProps()[2] == 1) {					boolean isSame = editBox.setTsetPal(EbMap							.getDrawTileset(sector.getTileset()),							TileEditor.tilesets[EbMap.getDrawTileset(sector									.getTileset())].getPaletteNum(sector									.getTileset(), sector.getPalette()));					if (!isSame)						editBox.repaint();				}			} else {				if (tilesetList != null) {					tilesetList.removeActionListener(this);					tilesetList.setSelectedIndex(-1);				}				if (paletteBox != null) {					paletteBox.removeActionListener(this);					paletteBox.removeAllItems();					paletteBox.setSelectedIndex(-1);				}				if (musicBox != null) {					musicBox.removeActionListener(this);					musicBox.setSelectedIndex(-1);				}				editBox.setTsetPal(-1, -1);			}			repaint();			if (editBox != null)				editBox.repaint();		}