preview.remoteRepaint();
preview.repaint();
	public void actionPerformed(ActionEvent ae)	{		if (ae.getSource().equals(sp))		{			palettes[photoPaletteChooser.getSelectedIndex()][0][sp.getSelectedColorIndex()] =				sp.getNewColor();			preview.setPalette(palettes[photoPaletteChooser.getSelectedIndex()]);			preview.remoteRepaint();		}		else if (ae.getSource().equals(entryChooser))			updateComponents();		else if (ae.getSource().equals(photoPaletteChooser))		{			updatePaletteDisplay();		}		else if (ae.getSource().equals(subPaletteChooser))		{			sp.setPalette(					palettes[photoPaletteChooser.getSelectedIndex()]							 [subPaletteChooser.getSelectedIndex()]);			sp.repaint();		}		else if (ae.getSource().equals(centerSeek))			net.starmen.pkhack.JHack.main.showModule(        			MapEditor.class, this);		else if (ae.getSource().equals(refresh))			preview.remoteRepaint();		else if (ae.getSource() instanceof JCheckBox)		{			for (int i = 0; i < party.length; i++)				if (ae.getSource().equals(party[i][0]))				{					JCheckBox cbox = (JCheckBox) party[i][0];					((JTextField) party[i][1]).setEditable(							cbox.isSelected());					((JTextField) party[i][2]).setEditable(							cbox.isSelected());					preview.remoteRepaint();					return;				}											for (int i = 0; i < extra.length; i++)				if (ae.getSource().equals(extra[i][0]))				{					JCheckBox cbox = (JCheckBox) extra[i][0];					((JComboBox) extra[i][1]).setEnabled(							cbox.isSelected());					((JTextField) extra[i][2]).setEditable(							cbox.isSelected());					((JTextField) extra[i][3]).setEditable(							cbox.isSelected());					preview.remoteRepaint();					return;				}		}		else if (ae.getSource() instanceof JComboBox)			preview.remoteRepaint();		else if (ae.getActionCommand().equals("apply"))			writeToRom();		else if (ae.getActionCommand().equals("close"))			hide();	}