Solved

Make the process wait for feedback

Posted on 2007-11-29
3
406 Views
Last Modified: 2013-11-23
HI everyone

  I am trying to achieve something like following and am not sure how to proceed..

  i have a GUI for image analysis and in one instance of SwingWorker (when process button is clicked), i show a image to the user and i need to store the feedback of user for that image, but i need my process to wait for the user answer and set some values based on the feedback and

  after getting the feedback, continue with the process or do some calculations and it repeats..

 any pointers to achieve this .. or links?

 
0
Comment
Question by:max_dub
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 24

Expert Comment

by:sciuriware
ID: 20375628
The feedback from the user is just an Event fired into 'actionPerformed()'

So, you must not wait, but let the Event happen.

;JOOP!
0
 

Author Comment

by:max_dub
ID: 20375721
hmm,

by feedback i mean, the user click on image and sets a value whether its relevant or not for the algorithm

and while this is taking place, the algorithm in the background should wait for the value to be set

and once it has the value; we proceed with the algorithm,,

can u explain ur answer a bit, am kind of confused?
0
 
LVL 24

Accepted Solution

by:
sciuriware earned 500 total points
ID: 20380259
Every user response has the shape of an Event (e.g. a button-click).
If you know how to process a button-click, then you know how
to handle any event, from timer firing till mouse Events.
No polling or waiting, just set everything ready and let the 'actionPerformed()' do the work.

;JOOP!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question