Moving Colours - Online Code


This code is another good example for animation.Here there is a oval shaped figure where the colours keep on moving.

Source Code

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Insets;
import java.util.Timer;
import java.util.TimerTask;

import javax.swing.JFrame;

public class Animation3 extends JFrame {

  private static int DELAY = 1
... (login or register to view full code)

To view full code, you must Login or Register, its FREE.

Hey, registering yourself just takes less than a minute and opens up a whole new GetGyan experience.


No comment yet. Be the first to post a comment.