I imagine you are trying to plot a Sierpinski Triangle Fractal



public void paint(Graphics g)
{
super.paint(g);

int i = 0;