?
Solved

Make the process wait for feedback

Posted on 2007-11-29
3
Medium Priority
?
407 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 1500 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

801 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