Perry Smith

Java Questions & Answers

Archive

Home / Java Q & A Archive Page 5 / Java Q & A Archive / Java Main Page

Multiple images
Thursday, 03-Jun-1999 19:10:38

129.193.149.203 writes:

Hi,

I am just learn how to code java and I wanted to do a simple chess game. For each piece I have a gif file.

When I initailly show the frame I wish to display the pieces not all the pieces get displayed ... I think this is happening because my imageUpdate () routine is only working on the first image...

please look at my applet
http://home.earthlink.net/~rbcecala

follow the links until you get to the chess game.
thanks Russ Cecala


Responses
Re: Multiple images
Sunday, 06-Jun-1999 15:27:39

171.209.193.111 writes:

As a preliminary observation, your program has erratic behavior. Most of the time I doesn't display properly, but one time I ran it and it seemed to display and work fine. I even played with it for a bit -- moved and captured some pawns -- but that was the only time it worked. I'm looking through some of the code, I'll let you know if I find anything.

MikeD


Re: Re: Multiple images
Tuesday, 08-Jun-1999 03:28:54

209.179.143.233 writes:

I based the handling of the images on the examples in Core Java ( the old one JDK 1.0).

I tried the techique discussed in Core Java 2 ( using a MediaTracker ) that does not appear to work for applets.

I am going to post the source to the Chess game ( it is broad.java ) Just follow the source link on the Launch Pad page on my URL home.earthlink.net/~rbcecala

Thanks for trying out the game.

Russ


Home / Java Q & A Archive Page 5 / Java Q & A Archive / Java Main Page