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
Solved

Waiting for GUI input before continuing.

Posted on 2006-07-17
6
370 Views
Last Modified: 2010-03-31
Hi there,

I've got a flow like:

DoStuff1
Create GUI and ask user stuff
CloseGUI
DoOtherStuffDependingOnWhatUserSelects

Thing is is that I need the program to wait until the user has pressed okay or cancel on the GUI before continuing. How can I achieve this? I haven't provided code so far as I don't expect this to be difficult to integrate etc.. Thank you. :)
0
Comment
Question by:Unimatrix_001
6 Comments
 
LVL 35

Accepted Solution

by:
girionis earned 50 total points
ID: 17121309
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 50 total points
ID: 17121318
Most Dialogs are modal or can be so your program will wait for input before continuing. If using Dialog, call setModal
0
 
LVL 92

Assisted Solution

by:objects
objects earned 25 total points
ID: 17121321
you don't need to do anything to wait as guis are event driven.
So instead what you would do is have a listener that is notified when the ok/cancel are pressed and have that listener initiate the required processinf.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 3

Author Comment

by:Unimatrix_001
ID: 17121378
Hehehe, thanks guys. Sorry objects you got the lower end of the points but you were probably 20 seconds too late! ;) Thanks again works a treat. :)

Uni
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 17121379
:-)
0
 
LVL 35

Expert Comment

by:girionis
ID: 17121387
:)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

861 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