Import java.awt.*; Matriz de color Color estático [] color = {color.black, color.blue, color.cyan, color.green, color.orange, color.yllow, color.red, color.light_gray}; Random (); coordenadas int y = 50; .PrintStackTrace ();} // GRACHICS GRÁFICOS DE CONTEXTO DE COMPONES , y, 100, y ++); (), 100, 100);} // El método de interfaz del programa de inicialización es público void (JFREAME Frame, int wid th, int altura) {{frame.setDefaultCloseOperation (jframe.exit_on_close); ; El latente en Java es el método Sleep (). clase del hilo.