Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

JTable - animation

AykutMar 26 2015 — edited Apr 3 2015

Hi all,

I have a JTable with 6 rows and 6 colums, i.e. 36 cells.

I have 1 image-icons..

I want an animation of the image, it should just be shown in the JTable as described below.

In my following explananation: Cell[row;column]

State 1

Cell[0;0] = 1st image

Cell[remain] = empty

PAUSE

State 2

Cell[0;0] = empty

Cell[0;1] = 1st image

Cell[remain] = empty


PAUSE


State 3

Cell[0;0] = empty

Cell[0;1] = empty

Cell[0;2] = 1st image

Cell[remain] = empty


PAUSE


and so on,



Once the image hits last column, it jumps 2n row 1st cell so the animation is like a snake move of the image.


I currently got stuck  loading the image 1 after another, so "transition from state_i  to state_i+1"

I got confused using Thread.


How can I have pause between those states (I described above).


I use the Threads somehow wrong.


Any example loading images in Cells (JTable) with pause in between?

Thanks Aykut



Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 1 2015
Added on Mar 26 2015
6 comments
1,152 views