}        public void repaintCurrentTile()
}
public void repaintTile(int tile)        {            Graphics g = display.getGraphics();            Image img[] = new Image[8]; //one for each subpal            for (int a = getArrangementOffset(); a < getArrangementOffset() + 60; a++)            {                for (int x = 0; x < 4; x++)                {                    for (int y = 0; y < 4; y++)                    {                        int arr = getSelectedTileset().getArrangementData(a, x,                            y);                        if ((arr & 0x1ff) == tile)                        {                            int subPal = (((arr & 0x1C00) >> 10) - 2);                            if (img[subPal] == null)                                img[subPal] = getSelectedTileset()                                    .getTileImage(tile, getCurrentPalette(),                                        subPal);                            //(dx, dy) = top-left corner of destination                            int dx = (((a - getArrangementOffset()) / 4) * 33)                            + (x * 8), dy = (((a - getArrangementOffset()) % 4) * 33)                            + (y * 8);                            g.drawImage(img[subPal],                                dx,dy, dx + 8, dy + 8, ((arr & 0x4000) == 0                                        ? 0                                            : 8), ((arr & 0x8000) == 0                                                    ? 0                                                        : 8),((arr & 0x4000) != 0                                                                ? 0                                                                    : 8), ((arr & 0x8000) != 0                                                                            ? 0                                                                                : 8)                                ,                                null);                            //if this just drew on the current arrangement...                            if (a == getCurrentArrangement())                            {                                //rehighlight the part that was just drawn over                                g.setColor(new Color(255, 255, 0, 128));                                g.fillRect(                                    (((a - getArrangementOffset()) / 4) * 33)                                        + (x * 8),                                    (((a - getArrangementOffset()) % 4) * 33)                                        + (y * 8), 8, 8);                            }                        }                    }                }            }        }        public void repaintCurrentTile()