for (int i = 0; i < palette.length; i++) Arrays.fill(palette[i], Color.BLACK);
Arrays.fill(palette, Color.BLACK);
        private boolean readPalette(boolean allowFailure, boolean readOrg)        {            AbstractRom r = readOrg ? JHack.main.getOrginalRomFile(hm.rom                .getRomType()) : hm.rom;            byte[] palBuffer = new byte[getNumSubPalettes()                * getSubPaletteSize() * 2];            /** * DECOMPRESS PALETTE ** */            System.out.println("About to attempt decompressing "                + palBuffer.length + " bytes of title screen #" + num                + " palette.");            int[] tmp = EbHackModule.decomp(readOrg ? r                .readRegAsmPointer(palPointerArray[num]) : palPointer,                palBuffer, r);            palette = new Color[NUM_PALETTES][getSubPaletteSize()];            if (tmp[0] < 0)            {                System.out.println("Error " + tmp[0]                    + " decompressing title screen #" + num + " palette.");                if (allowFailure)                { // EMPTY PALETTES                    for (int i = 0; i < palette.length; i++)                        Arrays.fill(palette[i], Color.BLACK);                    palLen = 0;                }                else                {                    return false;                }            }            else            {                palLen = tmp[1];                System.out.println("TitleScreen palette: Decompressed "                    + tmp[0] + " bytes from a " + tmp[1]                    + " byte compressed block.");                int palOffset = 0;                for (int i = 0; i < NUM_PALETTES; i++)                {                    HackModule.readPalette(palBuffer, palOffset, palette[i]);                    palOffset += palette[i].length * 2;                }            }            return true;        }