LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 650 users online 174671 members 1295 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Video | Dictionary | News | FAQ
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
7 online / 32 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

Java animation
Replies: 3Last Post Sep. 11, 2007 4:19pm by username452
Single page for this topic Email Print Favorite
( username452 )


Quality Control Engineer
Reply
Alright, im relatively new to java, but i have a firm understanding of it. Ive been using the gpdraw class to do various things, like make a certain number of randomly colored randomly spawning squares pop up, and ive pretty much done all i could do with gpdraw.

My next goal, is to get some sort of animation going. In gpdraw, i can draw a circle, then move it and draw it a pixel to the right. This will of course make a line.

I can also fill a circle, fill it with white and move on to the next, but this creates an annoying flicker which i really do not want. I've heard of a technique called double buffering which allows the change to happen off screen to prevent flicker, but i have a feeling i wont be able to do this using gpdraw as ive been doing.

Would anyone know how i can accomplish a smooth animation in gpdraw without any flicker? Or if not possible, could someone let me know how it would be done through another method? Thanks


3:04 pm on Sep. 11, 2007 | Joined April 2007 | 84 Days Active
Join to learn more about username452 United States | 108 Posts | 948 Points
Crazy faybe


Grasshopper
Reply
nope sori

-------
|*-^*Faybe*^-*|

3:06 pm on Sep. 11, 2007 | Joined Sep. 2007 | 2 Days Active
Join to learn more about Crazy faybe England, United Kingdom | Straight Female | 21 Posts | 41 Points
erolimo


Connoisseur
Reply
I have never heard of the program. If you want help with the Java code, I might be able to help.

3:15 pm on Sep. 11, 2007 | Joined June 2007 | 291 Days Active
Join to learn more about erolimo Italy | Metrosexual Male | 4379 Posts | 7446 Points
( username452 )


Quality Control Engineer
Reply
its an additional class i added, thought it was fairly popular. Relatively simple DrawingTool and SketchPad objects were made, and then had drawingtool draw various stuff.

anyway,  goal for right now is to just make a circle move in a smooth animation. then ill apply that to all sorts of things i need to do. im not sure how to do this outside of gpdraw though


4:19 pm on Sep. 11, 2007 | Joined April 2007 | 84 Days Active
Join to learn more about username452 United States | 108 Posts | 948 Points
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic