Animation on a JPanel
From: J. Babe (babe_jt_at_hotmail.com)
Date: 05/28/04
- Next message: Thomas Weidenfeller: "Re: Tree model"
- Previous message: csdev: "TreeModelListener"
- Next in thread: Knute Johnson: "Re: Animation on a JPanel"
- Reply: Knute Johnson: "Re: Animation on a JPanel"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 May 2004 13:59:10 -0700
Hello,
I'm trying to create a file transfer window that shows a file moving
from a client computer to a server.
I have an applet that pops up a JFrame from a user action. The JFrame
is using a BorderLayout and has a JLabel at BorderLayout.NORTH, a
JLabel with an image at .WEST, another JLabel at BorderLayout.East,
and a JPanel at BorderLayout.CENTER. (A JPanel in between two images
of computers).
********************************************
What I want to do is create an animation on the JPanel that uses an
image of a file, which shows the file moving from one side of the
panel to the other and repeats itself. I was wondering how to go about
doing this.
I would like to create a new class that extends javax.swing.JPanel
that does this.
*********************************************
Thanks in advance.
- Next message: Thomas Weidenfeller: "Re: Tree model"
- Previous message: csdev: "TreeModelListener"
- Next in thread: Knute Johnson: "Re: Animation on a JPanel"
- Reply: Knute Johnson: "Re: Animation on a JPanel"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]