Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Double Buffering
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
evogre3n




PostPosted: Sun Oct 16, 2005 4:41 pm   Post subject: Double Buffering

Hey all,

I just want to make a simple example of double buffering using Console class (required by my teacher *sigh*) by making a box and moving it across the screen.

I can achieve this using thread.sleep and a for loop to move a c.fillRect(x,y,100,100); method...

Ive been reading up on double buffering, but its all so complicated and always integrated into some fancy applet games.. I just want to double buffer this box so it doesnt flicker, and so I get an easy intro to double buffering.

Can you guys show me an example of how to make a simple double buffer to move a box across the screen?

Thanks
Sponsor
Sponsor
Sponsor
sponsor
cycro1234




PostPosted: Sun Oct 16, 2005 4:43 pm   Post subject: (No subject)

Or, perhaps, there is another way to make flicker free animation? One that is easier?
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: