I have a Jframe using a menubar to determine the color and shape of a graphics2d object, at the moment the color stays red no matter what. I think the problem is in the itemListener in the inner class myShape, but I dont know what it is.

Heres the code:
[CODE=Java]
import java.awt.*;
import javax.swing.*;
import java.awt.event. *;
import java.awt.Graphi cs2D.*;
import java.awt.geom.* ;
...