preview.remoteRepaint();
preview.repaint();
	public void updateComponents()	{		muteEvents = true;		PhotoEntry photo = entries[entryChooser.getSelectedIndex()];		direction.setSelectedIndex(photo.getDirection());		flag.setText(Integer.toString(photo.getFlag(),16));		centerX.setText(Integer.toString(photo.getCenterX()));		centerY.setText(Integer.toString(photo.getCenterY()));		photoPaletteChooser.setSelectedIndex(photo.getPalette());		preview.setPalette(palettes[photo.getPalette()]);		distance.setText(Integer.toString(photo.getDistance()));		landX.setText(Integer.toString(photo.getLandX()));		landY.setText(Integer.toString(photo.getLandY()));				preview.setXY(photo.getCenterX(), photo.getCenterY());				for (int i = 0; i < party.length; i++)		{			if ((photo.getPartyX(i) > 0) && (photo.getPartyY(i) > 0))			{				((JCheckBox) party[i][0]).setSelected(true);				((JTextField) party[i][1]).setEditable(true);				((JTextField) party[i][2]).setEditable(true);			}			else			{				((JCheckBox) party[i][0]).setSelected(false);				((JTextField) party[i][1]).setEditable(false);				((JTextField) party[i][2]).setEditable(false);			}			((JTextField) party[i][1]).setText(					Integer.toString(photo.getPartyX(i)));			((JTextField) party[i][2]).setText(					Integer.toString(photo.getPartyY(i)));		}				for (int i = 0; i < extra.length; i++)		{			if ((photo.getExtraX(i) > 0) && (photo.getExtraY(i) > 0))			{				((JCheckBox) extra[i][0]).setSelected(true);				((JComboBox) extra[i][1]).setEnabled(true);				((JTextField) extra[i][2]).setEditable(true);				((JTextField) extra[i][3]).setEditable(true);			}			else			{				((JCheckBox) extra[i][0]).setSelected(false);				((JComboBox) extra[i][1]).setEnabled(false);				((JTextField) extra[i][2]).setEditable(false);				((JTextField) extra[i][3]).setEditable(false);			}			((JComboBox) extra[i][1]).setSelectedIndex(					photo.getExtraSprite(i));			((JTextField) extra[i][2]).setText(					Integer.toString(photo.getExtraX(i)));			((JTextField) extra[i][3]).setText(					Integer.toString(photo.getExtraY(i)));		}				preview.remoteRepaint();		muteEvents = false;	}