Solved

Waiting for GUI input before continuing.

Posted on 2006-07-17
6
364 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
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

809 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