*/
public void stateChanged(ChangeEvent e)
{
if (e.getSource() instanceof AlphaColorButtonI)
{
AlphaColorButtonI button = (AlphaColorButtonI) e.getSource();
if (button.getName().equals("pen_color"))
{
setPenColor(button.getColor());
}
else
{
setFillColor(button.getColor());
}
}
else if (e.getSource() instanceof GradientButtonI)
{
System.out.println("SETTING GRADIENT");
GradientButtonI button = (GradientButtonI) e.getSource();
gradient_ = button.getGradient();
}
}