Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

Java Drawing

Thread view: 
ozzy_rip_randy@yahoo.com - 18 Jan 2006 21:38 GMT
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.
Oliver Wong - 18 Jan 2006 23:09 GMT
>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
Jacob - 19 Jan 2006 07:46 GMT
> 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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.