[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Waiting for GUI input before continuing.

Posted on 2006-07-17
6
Medium Priority
?
394 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 200 total points
ID: 17121309
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 200 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 100 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses
Course of the Month19 days, 3 hours left to enroll

834 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