void (int background, int text, int textbackground, int border, int disable, int hover, int press, int focus, int select) { c_bg = new <error descr="Cannot resolve symbol 'Color'">Color</error>(background); c_text = new <error descr="Cannot resolve symbol 'Color'">Color</error>(text); c_textbg = new <error descr="Cannot resolve symbol 'Color'">Color</error>(textbackground); c_border = new <error descr="Cannot resolve symbol 'Color'">Color</error>(border); c_disable = new <error descr="Cannot resolve symbol 'Color'">Color</error>(disable); c_hover = new <error descr="Cannot resolve symbol 'Color'">Color</error>(hover); c_press = new <error descr="Cannot resolve symbol 'Color'">Color</error>(press); c_focus = new <error descr="Cannot resolve symbol 'Color'">Color</error>(focus); c_select = new <error descr="Cannot resolve symbol 'Color'">Color</error>(select); //midp c_ctrl = c_hover; //java> int[] pix = new int[block * block]; int r1 = c_bg.<error descr="Cannot resolve method 'getRed()'">getRed</error>(); int r2 = c_press.<error descr="Cannot resolve method 'getRed()'">getRed</error>(); int g1 = c_bg.<error descr="Cannot resolve method 'getGreen()'">getGreen</error>(); int g2 = c_press.<error descr="Cannot resolve method 'getGreen()'">getGreen</error>(); int b1 = c_bg.<error descr="Cannot resolve method 'getBlue()'">getBlue</error>(); int b2 = c_press.<error descr="Cannot resolve method 'getBlue()'">getBlue</error>(); for (int i = 0; i < block; i++) { int r = r1 - (r1 - r2) * i / block; int g = g1 - (g1 - g2) * i / block; int b = b1 - (b1 - b2) * i / block; int color = (255 << 24) | (r << 16) | (g << 8) | b; for (int j = 0; j < block; j++) { pix[i * block + j] = color; //pix[j * block + i] = color; } } gradient = createImage(new <error descr="Cannot resolve symbol 'MemoryImageSource'">MemoryImageSource</error>(block, block, pix, 0, block)); //<java }