I might be completely wrong, but if you have your program set up so that a
user can change the color with a button or something, you can add
something along the lines of imageicon.repaint(); or imageicon.redraw();
and the end of your actionPeformed method. I believe it depends on
whether you're using the Graphics or Graphics2D package.
--
+ David "Huertanix" Huerta
+ DeVry Linux User Group
+
http://www.devrylinux.org
On Fri, 14 May 2004, Ben Coffman wrote:
> I have a java program and I want to change the color on and ImageIcon. I
> have it set up so I can change the color on the icon, but I have to close
> the icon and then bring it back up again to get then new color that I set it
> too. Is there a way that I can change the color on the ImageIcon so I don't
> have to close it and re-open it to see the color change?
>
> Ben
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss