beginner's question about makin java animation
Iam a complete beginner in java ( totally blind about java^^).
I tried to make a simple animation(not as an applet) that has word(a simple "hello" word) moving from one point to another point horizontally inside a window.
I can make the window and the word "hello" inside the window,but i can't make the animation
here's the code i made:
// the ActiveFrame for making the window GUI
import java.awt.*;
import java.awt.event.*;
public class ActiveFrame extends Frame
{
public ActiveFrame()
{ addWindowListener
(new WindowAdapter()
{ public void windowClosing(WindowEvent e)
{ System.exit(0);}
}
);
setSize(300, 200);
setTitle(getClass().getName());
}
}
// the WindowText for making the text
import java.awt.*;
public class WindowText extends ActiveFrame
{
public void paint(Graphics g)
{
Font f = new Font("Monospaced", Font.BOLD, 16);
g.setFont(f);
g.drawString("Hello", 50,100);
}
public static void main(String[] args)
{
WindowText aframe = new WindowText();
aframe.setSize(500, 300);
aframe.setLocation(200, 100);
aframe.setTitle("Window Text Program");
aframe.show();
}
}
could someone help me for the animation's code?
thanks in advance.
btw: sorry for my bad english, i only got C on my english.

