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!

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

jamesgluten

Hey, i see you are facing a lot of problem due to high disk usage of your system that many times leads to lagging.Well i have the solution to your problem i found this link on internet..really a helping article http://errorcodespro.com/tiworker-exe-high-disk-usage-windows/. At begining i thought it was because of hard drive failure but i applied the solution it worked very well. You can find your solution at the given system.

1 - 1
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,158 views