Animation problems

Hi,

I'm trying to do visualization for an estimation algorithm in sensor networks.

I did a model animation of how the visualization should look using power point .Now I want to implement the same design dynamically based on the input in the program as in powerpoint using SWING. Is it possible.?

There are animations like spinning, blinking, writing on the image, dragging the image to a new position , a clock that is running , writing text on images. All this should happen as long as the input keeps flowing. The number of cells in the layout cannot be estimated before hand as it depends on different inputs. how could i do this ? or is it possible?

Is there any other java technology other than swing ?

[739 byte] By [cratnama] at [2007-11-27 10:33:04]
# 1

> or is it possible?

Yes.

> Is there any other java technology other than swing ?

Yes.

kirillga at 2007-7-28 18:20:35 > top of Java-index,Desktop,Core GUI APIs...
# 2

OK..What is that package other than swing?

Well , I have a specific problem .

I have a scroll bar in my frame that has to keep scrolling as new components are added to the the container and I should be able to visualize it. Right now , my scroll bar does not scroll though new components are getting added to the frame. however, at the end of the execution I'm able to scroll and view.

Thanks

cratnama at 2007-7-28 18:20:35 > top of Java-index,Desktop,Core GUI APIs...
# 3

> OK..What is that package other than swing?

There's SWT for example, but that's not part of the standard library.

> Well , I have a specific problem .

>

> I have a scroll bar in my frame that has to keep

> scrolling as new components are added to the the

> container and I should be able to visualize it. Right

> now , my scroll bar does not scroll though new

> components are getting added to the frame. however,

> at the end of the execution I'm able to scroll and

> view.

>

> Thanks

This probably means you are performing the entire execution on the Event Dispatching Thread, meaning that Swing can't paint anything or handle any events until it is done. Have a look at SwingWorker or javax.swing.Timer (very appropriate for animations).

dwga at 2007-7-28 18:20:35 > top of Java-index,Desktop,Core GUI APIs...
# 4

Can you please tell me the usage of ScrollableBar ?

In which package is it available ?

How do I implement it?

I should and should make the scroll bar scroll while components gets added.Please help.

cratnama at 2007-7-28 18:20:35 > top of Java-index,Desktop,Core GUI APIs...
# 5

Well there is the component.scrollRectToVisible( ) method which can use after adding the component to the Panel in the ScrollPane.

ICE

icewalker2ga at 2007-7-28 18:20:35 > top of Java-index,Desktop,Core GUI APIs...