Image Icon problem In card game

hello friends,

i m developing a small card game demo..

i am stucked at one level,,,,in my applicatoin multiplayer are served their card very well. i m using ImageIcon for display card of deck on screen..

Now when player take action of fold i want to show a action which looks like particular player card's imageicon set visibe(false)...but there is no direct method to dispose one image icon from multiple imageicon...

so what should i do make it real effect...

please help

[511 byte] By [raj_rajaa] at [2007-10-1 21:32:59]
# 1

I dont know how your drawing your cards to the screen but the way I did it when I made my card game in school was that when I set up a boolean condition in the paintComponent method and when its condition was met it would display them and when it wasnt it would not display them. That would cause them to be drawn to the screen at certain times and not other times. For your situation you could use that and just set the boolean variable to false when the fold condition is met. I hope I didnt confuse you with this.

DarcMagik

darcmagika at 2007-7-13 3:28:19 > top of Java-index,Other Topics,Java Game Development...