Java Drawing

O

ozzy_rip_randy

I am working on a project where I am simulating a life form. I am
going to represent the life form with an oval on the screen. I want it
to slowely randomly move around. I am working with a full screen
display without titlebar and so on. The only problem is, everytime I
call the paint method, it erases everything else on the screen. How
can I remedy this? Thanks.
 
O

Oliver Wong

I am working on a project where I am simulating a life form. I am
going to represent the life form with an oval on the screen. I want it
to slowely randomly move around. I am working with a full screen
display without titlebar and so on. The only problem is, everytime I
call the paint method, it erases everything else on the screen. How
can I remedy this? Thanks.

You could do your rendering onto a buffer, and then paint the whole
content of the buffer onto the screen. As long as no other threads much
around with your buffer, whatever content you left in the buffer should
still be there next time around.

- Oliver
 
J

Jacob

I am working on a project where I am simulating a life form. I am
going to represent the life form with an oval on the screen. I want it
to slowely randomly move around. I am working with a full screen
display without titlebar and so on. The only problem is, everytime I
call the paint method, it erases everything else on the screen. How
can I remedy this? Thanks.

There is a powerful 2D graphics package available
at http://geosoft.no/graphics. This will handle
these things for you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top