SpriteEditor.Sprite sp = new SpriteEditor.Sprite(sib .getSpriteInfo(i), this);
SpriteEditor.SpriteInfo si = sib.getSpriteInfo(i); SpriteEditor.Sprite sp = new SpriteEditor.Sprite(si, this);
    private void updateImages()    {        for (int i = 0; i < this.pics.length; i++)        {            if (i < sib.numSprites)            {                SpriteEditor.Sprite sp = new SpriteEditor.Sprite(sib                    .getSpriteInfo(i), this);                byte[][] spb = sp.getSpriteByte();                Color[] pal;                if (sib.palette == 4)                {                    TileEditor.Tileset ts = TileEditor.tilesets[tileset                        .getSelectedIndex()];                    int pn = tilesetPal.getSelectedIndex();                    int subpal = (ts.getPaletteColor(0, pn, 2).getRed() >> 3) - 2;                    pal = ts.getPaletteColors(pn, subpal);                }                else                {                    pal = sp.getPalette();                }                BufferedImage img = drawImage(spb, pal);                pics[i].setIcon(new ImageIcon(zoomImage(img, 2)));                pics[i].setEnabled(true);            }            else            {                pics[i].setIcon(new ImageIcon(new BufferedImage(1, 1,                    BufferedImage.TYPE_4BYTE_ABGR)));                pics[i].setEnabled(false);            }        }    }