Animation Problem  
Author Message
Knute Johnson





PostPosted: 2007-12-21 13:58:00 Top

java-programmer, Animation Problem Lew wrote:
> James Sarjeant wrote:
>> Thank you so much everyone, it worked with the javax.swing.Timer events.
>> Still got other bugs to iron out but thats a huge hurdle overcome.
>> Thanks again
>
> Remember: you think you have gotten away from the advice about the EDT,
> but you haven't.
>

It's a pesky thing isn't it :-).

--

Knute Johnson
email s/nospam/knute/
 
Knute Johnson





PostPosted: 2007-12-21 13:58:00 Top

java-programmer >> Animation Problem Lew wrote:
> James Sarjeant wrote:
>> Thank you so much everyone, it worked with the javax.swing.Timer events.
>> Still got other bugs to iron out but thats a huge hurdle overcome.
>> Thanks again
>
> Remember: you think you have gotten away from the advice about the EDT,
> but you haven't.
>

It's a pesky thing isn't it :-).

--

Knute Johnson
email s/nospam/knute/
 
rossum





PostPosted: 2007-12-21 17:44:00 Top

java-programmer >> Animation Problem On Thu, 20 Dec 2007 11:10:10 GMT, "James Sarjeant"
<email***@***.com> wrote:

>The scrollForward works fine but as soon as it is run in a loop it works but
>doesnt show the images. Any ideas are welcome.
Have you tried repaint() to get the screen to refresh?

rossum

 
 
James Sarjeant





PostPosted: 2007-12-21 19:37:00 Top

java-programmer >> Animation Problem > > Remember: you think you have gotten away from the advice about the EDT,
> > but you haven't.
> >
>
> It's a pesky thing isn't it :-).

I never think I have escaped anything with Java. When they teach it in uni
or schools it always sounds so simple but it never is.
Thanks for the heads up about the EDT though. I think this application will
have many periods with that rearing its head

James


 
 
James Sarjeant





PostPosted: 2007-12-21 19:40:00 Top

java-programmer >> Animation Problem Hi Rossum,
I did try repaint but that didnt have any effect whatsoever. The thread on
c.l.j.programmer helped me out. It was due to a thread issuse and doing too
many things at once.
Cheers anyway


"rossum" <email***@***.com> wrote in message
news:email***@***.com...
> On Thu, 20 Dec 2007 11:10:10 GMT, "James Sarjeant"
> <email***@***.com> wrote:
>
> >The scrollForward works fine but as soon as it is run in a loop it works
but
> >doesnt show the images. Any ideas are welcome.
> Have you tried repaint() to get the screen to refresh?
>
> rossum
>


 
 
Lew





PostPosted: 2007-12-21 23:55:00 Top

java-programmer >> Animation Problem James Sarjeant wrote:
> Hi Rossum,
> I did try repaint but that didnt have any effect whatsoever. The thread on
> c.l.j.programmer helped me out. It was due to a thread issuse and doing too
> many things at once.
> Cheers anyway
>
>
> "rossum" <email***@***.com> wrote in message
> news:email***@***.com...
>> On Thu, 20 Dec 2007 11:10:10 GMT, "James Sarjeant"
>> <email***@***.com> wrote:
>>
>>> The scrollForward works fine but as soon as it is run in a loop it works
> but
>>> doesnt show the images. Any ideas are welcome.
>> Have you tried repaint() to get the screen to refresh?

If you have started multiple threads in different newsgroups on the same
question, it is only courteous to combine them with your answers in order to
correct the negative effects of multi-posting.

--
Lew