0

Update data in screen every second

asked 2014-04-15 09:12:24 +0800

Neus gravatar image Neus
1415 14

Hi,

I have a window with some charts which data must be updated every second. In the same wnidow user can interact, there is a listbox to change the data origin, buttons that opens windows.... My problem is that as window is updated every second, it interferes with user interaction and it is very difficult to do anything.

How can I solve it? To update data every second I use Application event queue. So, at the moment when I subscribe the event I tried to tell it that it is asynchronous, but when I tried to update beans with BindUtils.postNotifyChange(null, null, this, "*"); it says that the thread is not in an execution.

I have no idea of how to solve it. Anyone can help me??

Thank you!

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-04-15 12:04:22 +0800

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

updated 2014-04-15 20:40:13 +0800

From what I understand, you are trying to do an postNotifyChange from your eventQueue?

Better use an Global-command from your eventqueue to reach all the VM's. Then you can notifyChange in each VM. (@Notifychange works also on global-commands) If you use 1 evenQueue in the application scope, the best is register your vm also in the application scope.

Now do you use 1 eventQueue for all your vm's or for each session an other?

Can you post the code of your eventqueue(all and where)?

Greetz chill.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-04-15 09:12:24 +0800

Seen: 16 times

Last updated: Apr 15 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More